diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
commit | 218caa410aa38c29984be31a5229b9fa717560ee (patch) | |
tree | c54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/closures | |
parent | Releasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/arrays-completely-captured.rs (renamed from src/test/ui/closures/2229_closure_analysis/arrays-completely-captured.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/arrays-completely-captured.stderr (renamed from src/test/ui/closures/2229_closure_analysis/arrays-completely-captured.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/by_value.rs (renamed from src/test/ui/closures/2229_closure_analysis/by_value.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/by_value.stderr (renamed from src/test/ui/closures/2229_closure_analysis/by_value.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-analysis-1.rs (renamed from src/test/ui/closures/2229_closure_analysis/capture-analysis-1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-analysis-1.stderr (renamed from src/test/ui/closures/2229_closure_analysis/capture-analysis-1.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-analysis-2.rs (renamed from src/test/ui/closures/2229_closure_analysis/capture-analysis-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-analysis-2.stderr (renamed from src/test/ui/closures/2229_closure_analysis/capture-analysis-2.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-analysis-3.rs (renamed from src/test/ui/closures/2229_closure_analysis/capture-analysis-3.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-analysis-3.stderr (renamed from src/test/ui/closures/2229_closure_analysis/capture-analysis-3.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-analysis-4.rs (renamed from src/test/ui/closures/2229_closure_analysis/capture-analysis-4.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-analysis-4.stderr (renamed from src/test/ui/closures/2229_closure_analysis/capture-analysis-4.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.rs (renamed from src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.stderr (renamed from src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.rs (renamed from src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.stderr (renamed from src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-enum-field.rs (renamed from src/test/ui/closures/2229_closure_analysis/capture-enum-field.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-enums.rs (renamed from src/test/ui/closures/2229_closure_analysis/capture-enums.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/capture-enums.stderr (renamed from src/test/ui/closures/2229_closure_analysis/capture-enums.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/deep-multilevel-struct.rs (renamed from src/test/ui/closures/2229_closure_analysis/deep-multilevel-struct.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/deep-multilevel-struct.stderr (renamed from src/test/ui/closures/2229_closure_analysis/deep-multilevel-struct.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/deep-multilevel-tuple.rs (renamed from src/test/ui/closures/2229_closure_analysis/deep-multilevel-tuple.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/deep-multilevel-tuple.stderr (renamed from src/test/ui/closures/2229_closure_analysis/deep-multilevel-tuple.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/destructure_patterns.rs (renamed from src/test/ui/closures/2229_closure_analysis/destructure_patterns.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/destructure_patterns.stderr (renamed from src/test/ui/closures/2229_closure_analysis/destructure_patterns.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/arrays.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/arrays.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/arrays.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/arrays.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.rs) | 3 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.stderr | 22 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/box.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/box.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/box.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/box.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/liveness.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/liveness.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/liveness.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/liveness.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/mut_ref.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/mut_ref.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/mut_ref.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/mut_ref.stderr) | 8 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/repr_packed.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/repr_packed.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/repr_packed.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/repr_packed.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/union.rs (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/union.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/diagnostics/union.stderr (renamed from src/test/ui/closures/2229_closure_analysis/diagnostics/union.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.rs (renamed from src/test/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.stderr (renamed from src/test/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/filter-on-struct-member.rs (renamed from src/test/ui/closures/2229_closure_analysis/filter-on-struct-member.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/filter-on-struct-member.stderr (renamed from src/test/ui/closures/2229_closure_analysis/filter-on-struct-member.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/issue-87378.rs (renamed from src/test/ui/closures/2229_closure_analysis/issue-87378.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/issue-87378.stderr (renamed from src/test/ui/closures/2229_closure_analysis/issue-87378.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/issue-87987.rs (renamed from src/test/ui/closures/2229_closure_analysis/issue-87987.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/issue-87987.stderr (renamed from src/test/ui/closures/2229_closure_analysis/issue-87987.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/issue-88118-2.rs (renamed from src/test/ui/closures/2229_closure_analysis/issue-88118-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/issue-88118-2.stderr (renamed from src/test/ui/closures/2229_closure_analysis/issue-88118-2.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/issue-88476.rs (renamed from src/test/ui/closures/2229_closure_analysis/issue-88476.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/issue-88476.stderr (renamed from src/test/ui/closures/2229_closure_analysis/issue-88476.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/issue-89606.rs (renamed from src/test/ui/closures/2229_closure_analysis/issue-89606.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/issue-90465.fixed (renamed from src/test/ui/closures/2229_closure_analysis/issue-90465.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/issue-90465.rs (renamed from src/test/ui/closures/2229_closure_analysis/issue-90465.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/issue-90465.stderr (renamed from src/test/ui/closures/2229_closure_analysis/issue-90465.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/issue-92724-needsdrop-query-cycle.rs (renamed from src/test/ui/closures/2229_closure_analysis/issue-92724-needsdrop-query-cycle.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/issue_88118.rs (renamed from src/test/ui/closures/2229_closure_analysis/issue_88118.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/auxiliary/match_non_exhaustive_lib.rs (renamed from src/test/ui/closures/2229_closure_analysis/match/auxiliary/match_non_exhaustive_lib.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/issue-87097.rs (renamed from src/test/ui/closures/2229_closure_analysis/match/issue-87097.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/issue-87097.stderr (renamed from src/test/ui/closures/2229_closure_analysis/match/issue-87097.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/issue-87426.rs (renamed from src/test/ui/closures/2229_closure_analysis/match/issue-87426.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/issue-87988.rs (renamed from src/test/ui/closures/2229_closure_analysis/match/issue-87988.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/issue-88331.rs (renamed from src/test/ui/closures/2229_closure_analysis/match/issue-88331.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/issue-88331.stderr (renamed from src/test/ui/closures/2229_closure_analysis/match/issue-88331.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/match-edge-cases_1.rs (renamed from src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/match-edge-cases_2.rs (renamed from src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/match-edge-cases_2.stderr (renamed from src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_2.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/non-exhaustive-match.rs (renamed from src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/non-exhaustive-match.stderr (renamed from src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.rs (renamed from src/test/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.stderr (renamed from src/test/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.rs (renamed from src/test/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.stderr (renamed from src/test/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/auto_traits.fixed (renamed from src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/auto_traits.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/auto_traits.stderr (renamed from src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.fixed (renamed from src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.stderr (renamed from src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop.fixed (renamed from src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.fixed (renamed from src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.stderr (renamed from src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_no_migrations.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_no_migrations.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/issue-78720.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr (renamed from src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/issue-86753.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/issue-86753.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/issue-90024-adt-correct-subst.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/issue-90024-adt-correct-subst.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/macro.fixed (renamed from src/test/ui/closures/2229_closure_analysis/migrations/macro.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/macro.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/macro.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/macro.stderr (renamed from src/test/ui/closures/2229_closure_analysis/migrations/macro.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.fixed (renamed from src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.stderr (renamed from src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.fixed (renamed from src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.stderr (renamed from src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.fixed (renamed from src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.stderr (renamed from src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/no_migrations.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/no_migrations.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/old_name.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/old_name.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/old_name.stderr (renamed from src/test/ui/closures/2229_closure_analysis/migrations/old_name.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/precise.fixed (renamed from src/test/ui/closures/2229_closure_analysis/migrations/precise.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/precise.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/precise.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/precise.stderr (renamed from src/test/ui/closures/2229_closure_analysis/migrations/precise.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/precise_no_migrations.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/precise_no_migrations.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/significant_drop.fixed (renamed from src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/significant_drop.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/significant_drop.stderr (renamed from src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/unpin_no_migration.rs (renamed from src/test/ui/closures/2229_closure_analysis/migrations/unpin_no_migration.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/move_closure.rs (renamed from src/test/ui/closures/2229_closure_analysis/move_closure.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/move_closure.stderr (renamed from src/test/ui/closures/2229_closure_analysis/move_closure.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/multilevel-path-1.rs (renamed from src/test/ui/closures/2229_closure_analysis/multilevel-path-1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/multilevel-path-1.stderr (renamed from src/test/ui/closures/2229_closure_analysis/multilevel-path-1.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/multilevel-path-2.rs (renamed from src/test/ui/closures/2229_closure_analysis/multilevel-path-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/multilevel-path-2.stderr (renamed from src/test/ui/closures/2229_closure_analysis/multilevel-path-2.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/nested-closure.rs (renamed from src/test/ui/closures/2229_closure_analysis/nested-closure.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/nested-closure.stderr (renamed from src/test/ui/closures/2229_closure_analysis/nested-closure.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/optimization/edge_case.rs (renamed from src/test/ui/closures/2229_closure_analysis/optimization/edge_case.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/optimization/edge_case.stderr (renamed from src/test/ui/closures/2229_closure_analysis/optimization/edge_case.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.rs (renamed from src/test/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/path-with-array-access.rs (renamed from src/test/ui/closures/2229_closure_analysis/path-with-array-access.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/path-with-array-access.stderr (renamed from src/test/ui/closures/2229_closure_analysis/path-with-array-access.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/preserve_field_drop_order.rs (renamed from src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/preserve_field_drop_order.stderr (renamed from src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.rs (renamed from src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_eighteen.run.stdout (renamed from src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_eighteen.run.stdout) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_twentyone.run.stdout (renamed from src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_twentyone.run.stdout) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/repr_packed.rs (renamed from src/test/ui/closures/2229_closure_analysis/repr_packed.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/repr_packed.stderr (renamed from src/test/ui/closures/2229_closure_analysis/repr_packed.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/box.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/box.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/by_value.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/by_value.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-struct.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-struct.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple-mut.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple-mut.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/capture_with_wildcard_match.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/capture_with_wildcard_match.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.stderr (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.stderr (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/disjoint-capture-in-same-closure.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/disjoint-capture-in-same-closure.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/drop_then_use_fake_reads.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/drop_then_use_fake_reads.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/edition.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/edition.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/filter-on-struct-member.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/filter-on-struct-member.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/fru_syntax.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/fru_syntax.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/issue-87378.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/issue-87378.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/issue-88372.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/issue-88372.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/issue-88431.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/issue-88431.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/issue-88476.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/issue-88476.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/move_closure.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/move_closure.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-1.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-2.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-3.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-3.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/mut_ref.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/mut_ref.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/mut_ref_struct_mem.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/mut_ref_struct_mem.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/nested-closure.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/nested-closure.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/struct-pattern-matching-with-methods.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/struct-pattern-matching-with-methods.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/tuple-struct-pattern-matching-with-methods.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/tuple-struct-pattern-matching-with-methods.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/unsafe_ptr.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/unsafe_ptr.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/use_of_mutable_borrow_and_fake_reads.rs (renamed from src/test/ui/closures/2229_closure_analysis/run_pass/use_of_mutable_borrow_and_fake_reads.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/simple-struct-min-capture.rs (renamed from src/test/ui/closures/2229_closure_analysis/simple-struct-min-capture.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/simple-struct-min-capture.stderr (renamed from src/test/ui/closures/2229_closure_analysis/simple-struct-min-capture.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/unsafe_ptr.rs (renamed from src/test/ui/closures/2229_closure_analysis/unsafe_ptr.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/unsafe_ptr.stderr (renamed from src/test/ui/closures/2229_closure_analysis/unsafe_ptr.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/wild_patterns.rs (renamed from src/test/ui/closures/2229_closure_analysis/wild_patterns.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/wild_patterns.stderr (renamed from src/test/ui/closures/2229_closure_analysis/wild_patterns.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/add_semicolon_non_block_closure.rs (renamed from src/test/ui/closures/add_semicolon_non_block_closure.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/add_semicolon_non_block_closure.stderr (renamed from src/test/ui/closures/add_semicolon_non_block_closure.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/async-closure-with-binder.rs (renamed from src/test/ui/closures/binder/async-closure-with-binder.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/async-closure-with-binder.stderr (renamed from src/test/ui/closures/binder/async-closure-with-binder.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/disallow-const.rs (renamed from src/test/ui/closures/binder/disallow-const.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/disallow-const.stderr (renamed from src/test/ui/closures/binder/disallow-const.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/disallow-ty.rs (renamed from src/test/ui/closures/binder/disallow-ty.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/disallow-ty.stderr (renamed from src/test/ui/closures/binder/disallow-ty.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/implicit-return.rs (renamed from src/test/ui/closures/binder/implicit-return.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/implicit-return.stderr (renamed from src/test/ui/closures/binder/implicit-return.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/implicit-stuff.rs (renamed from src/test/ui/closures/binder/implicit-stuff.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/implicit-stuff.stderr (renamed from src/test/ui/closures/binder/implicit-stuff.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/late-bound-in-body.rs (renamed from src/test/ui/closures/binder/late-bound-in-body.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/nested-closures-regions.rs (renamed from src/test/ui/closures/binder/nested-closures-regions.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/nested-closures-regions.stderr (renamed from src/test/ui/closures/binder/nested-closures-regions.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/nested-closures.rs (renamed from src/test/ui/closures/binder/nested-closures.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.rs (renamed from src/test/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.stderr (renamed from src/test/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-array-break-length.rs (renamed from src/test/ui/closures/closure-array-break-length.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-array-break-length.stderr (renamed from src/test/ui/closures/closure-array-break-length.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs (renamed from src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-bounds-cant-promote-superkind-in-struct.stderr (renamed from src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-bounds-static-cant-capture-borrowed.rs (renamed from src/test/ui/closures/closure-bounds-static-cant-capture-borrowed.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-bounds-static-cant-capture-borrowed.stderr (renamed from src/test/ui/closures/closure-bounds-static-cant-capture-borrowed.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-bounds-subtype.rs (renamed from src/test/ui/closures/closure-bounds-subtype.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-bounds-subtype.stderr (renamed from src/test/ui/closures/closure-bounds-subtype.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-expected-type/expect-region-supply-region-2.polonius.stderr (renamed from src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.polonius.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-expected-type/expect-region-supply-region-2.rs (renamed from src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-expected-type/expect-region-supply-region-2.stderr (renamed from src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-expected-type/expect-region-supply-region.rs (renamed from src/test/ui/closures/closure-expected-type/expect-region-supply-region.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-expected-type/expect-region-supply-region.stderr (renamed from src/test/ui/closures/closure-expected-type/expect-region-supply-region.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-expected.rs (renamed from src/test/ui/closures/closure-expected.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-expected.stderr (renamed from src/test/ui/closures/closure-expected.stderr) | 3 | ||||
-rw-r--r-- | tests/ui/closures/closure-immutable-outer-variable.fixed (renamed from src/test/ui/closures/closure-immutable-outer-variable.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-immutable-outer-variable.rs (renamed from src/test/ui/closures/closure-immutable-outer-variable.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-immutable-outer-variable.rs.fixed (renamed from src/test/ui/closures/closure-immutable-outer-variable.rs.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-immutable-outer-variable.stderr (renamed from src/test/ui/closures/closure-immutable-outer-variable.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-move-sync.rs (renamed from src/test/ui/closures/closure-move-sync.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-move-sync.stderr (renamed from src/test/ui/closures/closure-move-sync.stderr) | 6 | ||||
-rw-r--r-- | tests/ui/closures/closure-no-fn-1.rs (renamed from src/test/ui/closures/closure-no-fn-1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-no-fn-1.stderr (renamed from src/test/ui/closures/closure-no-fn-1.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-no-fn-2.rs (renamed from src/test/ui/closures/closure-no-fn-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-no-fn-2.stderr (renamed from src/test/ui/closures/closure-no-fn-2.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-no-fn-3.rs (renamed from src/test/ui/closures/closure-no-fn-3.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-no-fn-3.stderr (renamed from src/test/ui/closures/closure-no-fn-3.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-no-fn-4.rs (renamed from src/test/ui/closures/closure-no-fn-4.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-no-fn-4.stderr (renamed from src/test/ui/closures/closure-no-fn-4.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-no-fn-5.rs (renamed from src/test/ui/closures/closure-no-fn-5.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-no-fn-5.stderr (renamed from src/test/ui/closures/closure-no-fn-5.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-referencing-itself-issue-25954.rs (renamed from src/test/ui/closures/closure-referencing-itself-issue-25954.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-referencing-itself-issue-25954.stderr (renamed from src/test/ui/closures/closure-referencing-itself-issue-25954.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-reform-bad.rs (renamed from src/test/ui/closures/closure-reform-bad.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-reform-bad.stderr (renamed from src/test/ui/closures/closure-reform-bad.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-return-type-mismatch.rs (renamed from src/test/ui/closures/closure-return-type-mismatch.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-return-type-mismatch.stderr (renamed from src/test/ui/closures/closure-return-type-mismatch.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-return-type-must-be-sized.rs (renamed from src/test/ui/closures/closure-return-type-must-be-sized.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-return-type-must-be-sized.stderr (renamed from src/test/ui/closures/closure-return-type-must-be-sized.stderr) | 6 | ||||
-rw-r--r-- | tests/ui/closures/closure-wrong-kind.rs (renamed from src/test/ui/closures/closure-wrong-kind.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure-wrong-kind.stderr (renamed from src/test/ui/closures/closure-wrong-kind.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure_cap_coerce_many_fail.rs (renamed from src/test/ui/closures/closure_cap_coerce_many_fail.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure_cap_coerce_many_fail.stderr (renamed from src/test/ui/closures/closure_cap_coerce_many_fail.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure_no_cap_coerce_many_check_pass.rs (renamed from src/test/ui/closures/closure_no_cap_coerce_many_check_pass.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure_no_cap_coerce_many_run_pass.rs (renamed from src/test/ui/closures/closure_no_cap_coerce_many_run_pass.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.mir.stderr (renamed from src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.mir.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.rs (renamed from src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.thir.stderr (renamed from src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.thir.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure_no_cap_coerce_many_unsafe_1.rs (renamed from src/test/ui/closures/closure_no_cap_coerce_many_unsafe_1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/closure_promotion.rs (renamed from src/test/ui/closures/closure_promotion.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.mir.stderr (renamed from src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.mir.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.rs (renamed from src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.thir.stderr (renamed from src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.thir.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/coerce-unsafe-to-closure.rs (renamed from src/test/ui/closures/coerce-unsafe-to-closure.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/coerce-unsafe-to-closure.stderr (renamed from src/test/ui/closures/coerce-unsafe-to-closure.stderr) | 3 | ||||
-rw-r--r-- | tests/ui/closures/deeply-nested_closures.rs (renamed from src/test/ui/closures/deeply-nested_closures.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/diverging-closure.rs (renamed from src/test/ui/closures/diverging-closure.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-101696.rs (renamed from src/test/ui/closures/issue-101696.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-102089-multiple-opaque-cast.rs (renamed from src/test/ui/closures/issue-102089-multiple-opaque-cast.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-10398.rs (renamed from src/test/ui/closures/issue-10398.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-10398.stderr (renamed from src/test/ui/closures/issue-10398.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-23012-supertrait-signature-inference.rs (renamed from src/test/ui/closures/issue-23012-supertrait-signature-inference.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-41366.rs (renamed from src/test/ui/closures/issue-41366.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-42463.rs (renamed from src/test/ui/closures/issue-42463.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-46742.rs (renamed from src/test/ui/closures/issue-46742.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-48109.rs (renamed from src/test/ui/closures/issue-48109.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-52437.rs (renamed from src/test/ui/closures/issue-52437.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-52437.stderr (renamed from src/test/ui/closures/issue-52437.stderr) | 4 | ||||
-rw-r--r-- | tests/ui/closures/issue-67123.rs (renamed from src/test/ui/closures/issue-67123.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-67123.stderr (renamed from src/test/ui/closures/issue-67123.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-6801.rs (renamed from src/test/ui/closures/issue-6801.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-6801.stderr (renamed from src/test/ui/closures/issue-6801.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-68025.rs (renamed from src/test/ui/closures/issue-68025.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-72408-nested-closures-exponential.rs (renamed from src/test/ui/closures/issue-72408-nested-closures-exponential.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-78720.rs (renamed from src/test/ui/closures/issue-78720.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-78720.stderr (renamed from src/test/ui/closures/issue-78720.stderr) | 6 | ||||
-rw-r--r-- | tests/ui/closures/issue-80313-mutable-borrow-in-closure.rs (renamed from src/test/ui/closures/issue-80313-mutable-borrow-in-closure.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-80313-mutable-borrow-in-closure.stderr (renamed from src/test/ui/closures/issue-80313-mutable-borrow-in-closure.stderr) | 7 | ||||
-rw-r--r-- | tests/ui/closures/issue-80313-mutable-borrow-in-move-closure.rs (renamed from src/test/ui/closures/issue-80313-mutable-borrow-in-move-closure.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-80313-mutable-borrow-in-move-closure.stderr (renamed from src/test/ui/closures/issue-80313-mutable-borrow-in-move-closure.stderr) | 7 | ||||
-rw-r--r-- | tests/ui/closures/issue-80313-mutation-in-closure.rs (renamed from src/test/ui/closures/issue-80313-mutation-in-closure.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-80313-mutation-in-closure.stderr (renamed from src/test/ui/closures/issue-80313-mutation-in-closure.stderr) | 7 | ||||
-rw-r--r-- | tests/ui/closures/issue-80313-mutation-in-move-closure.rs (renamed from src/test/ui/closures/issue-80313-mutation-in-move-closure.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-80313-mutation-in-move-closure.stderr (renamed from src/test/ui/closures/issue-80313-mutation-in-move-closure.stderr) | 7 | ||||
-rw-r--r-- | tests/ui/closures/issue-81700-mut-borrow.rs (renamed from src/test/ui/closures/issue-81700-mut-borrow.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-81700-mut-borrow.stderr | 16 | ||||
-rw-r--r-- | tests/ui/closures/issue-82438-mut-without-upvar.rs (renamed from src/test/ui/closures/issue-82438-mut-without-upvar.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-82438-mut-without-upvar.stderr (renamed from src/test/ui/closures/issue-82438-mut-without-upvar.stderr) | 8 | ||||
-rw-r--r-- | tests/ui/closures/issue-84044-drop-non-mut.rs (renamed from src/test/ui/closures/issue-84044-drop-non-mut.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-84044-drop-non-mut.stderr (renamed from src/test/ui/closures/issue-84044-drop-non-mut.stderr) | 7 | ||||
-rw-r--r-- | tests/ui/closures/issue-84128.rs (renamed from src/test/ui/closures/issue-84128.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-84128.stderr | 24 | ||||
-rw-r--r-- | tests/ui/closures/issue-87461.rs (renamed from src/test/ui/closures/issue-87461.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-87461.stderr | 57 | ||||
-rw-r--r-- | tests/ui/closures/issue-87814-1.rs (renamed from src/test/ui/closures/issue-87814-1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-87814-2.rs (renamed from src/test/ui/closures/issue-87814-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-90871.rs (renamed from src/test/ui/closures/issue-90871.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-90871.stderr (renamed from src/test/ui/closures/issue-90871.stderr) | 6 | ||||
-rw-r--r-- | tests/ui/closures/issue-97607.rs (renamed from src/test/ui/closures/issue-97607.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-99565.rs (renamed from src/test/ui/closures/issue-99565.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/issue-99565.stderr (renamed from src/test/ui/closures/issue-99565.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/local-type-mix.rs (renamed from src/test/ui/closures/local-type-mix.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/local-type-mix.stderr (renamed from src/test/ui/closures/local-type-mix.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/multiple-fn-bounds.rs (renamed from src/test/ui/closures/multiple-fn-bounds.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/multiple-fn-bounds.stderr (renamed from src/test/ui/closures/multiple-fn-bounds.stderr) | 4 | ||||
-rw-r--r-- | tests/ui/closures/old-closure-arg-call-as.rs (renamed from src/test/ui/closures/old-closure-arg-call-as.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/old-closure-arg.rs (renamed from src/test/ui/closures/old-closure-arg.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/old-closure-explicit-types.rs (renamed from src/test/ui/closures/old-closure-explicit-types.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/old-closure-expr-precedence.rs (renamed from src/test/ui/closures/old-closure-expr-precedence.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/old-closure-expr-precedence.stderr (renamed from src/test/ui/closures/old-closure-expr-precedence.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/old-closure-expression-remove-semicolon.fixed (renamed from src/test/ui/closures/old-closure-expression-remove-semicolon.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/closures/old-closure-expression-remove-semicolon.rs (renamed from src/test/ui/closures/old-closure-expression-remove-semicolon.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/old-closure-expression-remove-semicolon.stderr (renamed from src/test/ui/closures/old-closure-expression-remove-semicolon.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/old-closure-fn-coerce.rs (renamed from src/test/ui/closures/old-closure-fn-coerce.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/old-closure-iter-1.rs (renamed from src/test/ui/closures/old-closure-iter-1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/old-closure-iter-2.rs (renamed from src/test/ui/closures/old-closure-iter-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/once-move-out-on-heap.rs (renamed from src/test/ui/closures/once-move-out-on-heap.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/print/closure-print-generic-1.rs (renamed from src/test/ui/closures/print/closure-print-generic-1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/print/closure-print-generic-1.stderr (renamed from src/test/ui/closures/print/closure-print-generic-1.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/print/closure-print-generic-2.rs (renamed from src/test/ui/closures/print/closure-print-generic-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/print/closure-print-generic-2.stderr (renamed from src/test/ui/closures/print/closure-print-generic-2.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/print/closure-print-generic-trim-off-verbose-2.rs (renamed from src/test/ui/closures/print/closure-print-generic-trim-off-verbose-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/print/closure-print-generic-trim-off-verbose-2.stderr (renamed from src/test/ui/closures/print/closure-print-generic-trim-off-verbose-2.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/print/closure-print-generic-verbose-1.rs (renamed from src/test/ui/closures/print/closure-print-generic-verbose-1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/print/closure-print-generic-verbose-1.stderr (renamed from src/test/ui/closures/print/closure-print-generic-verbose-1.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/print/closure-print-generic-verbose-2.rs (renamed from src/test/ui/closures/print/closure-print-generic-verbose-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/print/closure-print-generic-verbose-2.stderr (renamed from src/test/ui/closures/print/closure-print-generic-verbose-2.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/print/closure-print-verbose.rs (renamed from src/test/ui/closures/print/closure-print-verbose.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/print/closure-print-verbose.stderr (renamed from src/test/ui/closures/print/closure-print-verbose.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/closures/semistatement-in-lambda.rs (renamed from src/test/ui/closures/semistatement-in-lambda.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/supertrait-hint-cycle-2.rs | 18 | ||||
-rw-r--r-- | tests/ui/closures/supertrait-hint-cycle-3.rs | 16 | ||||
-rw-r--r-- | tests/ui/closures/supertrait-hint-cycle.rs | 65 | ||||
-rw-r--r-- | tests/ui/closures/supertrait-hint-references-assoc-ty.rs (renamed from src/test/ui/closures/supertrait-hint-references-assoc-ty.rs) | 0 | ||||
-rw-r--r-- | tests/ui/closures/thir-unsafeck-issue-85871.rs (renamed from src/test/ui/closures/thir-unsafeck-issue-85871.rs) | 0 |
352 files changed, 267 insertions, 43 deletions
diff --git a/src/test/ui/closures/2229_closure_analysis/arrays-completely-captured.rs b/tests/ui/closures/2229_closure_analysis/arrays-completely-captured.rs index 2bcbd792e..2bcbd792e 100644 --- a/src/test/ui/closures/2229_closure_analysis/arrays-completely-captured.rs +++ b/tests/ui/closures/2229_closure_analysis/arrays-completely-captured.rs diff --git a/src/test/ui/closures/2229_closure_analysis/arrays-completely-captured.stderr b/tests/ui/closures/2229_closure_analysis/arrays-completely-captured.stderr index 129b26456..129b26456 100644 --- a/src/test/ui/closures/2229_closure_analysis/arrays-completely-captured.stderr +++ b/tests/ui/closures/2229_closure_analysis/arrays-completely-captured.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/by_value.rs b/tests/ui/closures/2229_closure_analysis/by_value.rs index d8d3bbee2..d8d3bbee2 100644 --- a/src/test/ui/closures/2229_closure_analysis/by_value.rs +++ b/tests/ui/closures/2229_closure_analysis/by_value.rs diff --git a/src/test/ui/closures/2229_closure_analysis/by_value.stderr b/tests/ui/closures/2229_closure_analysis/by_value.stderr index 097462253..097462253 100644 --- a/src/test/ui/closures/2229_closure_analysis/by_value.stderr +++ b/tests/ui/closures/2229_closure_analysis/by_value.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-1.rs b/tests/ui/closures/2229_closure_analysis/capture-analysis-1.rs index dc53b3176..dc53b3176 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-analysis-1.rs +++ b/tests/ui/closures/2229_closure_analysis/capture-analysis-1.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-1.stderr b/tests/ui/closures/2229_closure_analysis/capture-analysis-1.stderr index fceafb9c8..fceafb9c8 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-analysis-1.stderr +++ b/tests/ui/closures/2229_closure_analysis/capture-analysis-1.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-2.rs b/tests/ui/closures/2229_closure_analysis/capture-analysis-2.rs index 99d12f8d8..99d12f8d8 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-analysis-2.rs +++ b/tests/ui/closures/2229_closure_analysis/capture-analysis-2.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-2.stderr b/tests/ui/closures/2229_closure_analysis/capture-analysis-2.stderr index cb44ca266..cb44ca266 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-analysis-2.stderr +++ b/tests/ui/closures/2229_closure_analysis/capture-analysis-2.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-3.rs b/tests/ui/closures/2229_closure_analysis/capture-analysis-3.rs index 3f337097d..3f337097d 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-analysis-3.rs +++ b/tests/ui/closures/2229_closure_analysis/capture-analysis-3.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-3.stderr b/tests/ui/closures/2229_closure_analysis/capture-analysis-3.stderr index 71e7bdc35..71e7bdc35 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-analysis-3.stderr +++ b/tests/ui/closures/2229_closure_analysis/capture-analysis-3.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-4.rs b/tests/ui/closures/2229_closure_analysis/capture-analysis-4.rs index bc46ec997..bc46ec997 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-analysis-4.rs +++ b/tests/ui/closures/2229_closure_analysis/capture-analysis-4.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-4.stderr b/tests/ui/closures/2229_closure_analysis/capture-analysis-4.stderr index 7e6e625bc..7e6e625bc 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-analysis-4.stderr +++ b/tests/ui/closures/2229_closure_analysis/capture-analysis-4.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.rs b/tests/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.rs index 6fd151553..6fd151553 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.rs +++ b/tests/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.stderr b/tests/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.stderr index 0f64ecf3a..0f64ecf3a 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.stderr +++ b/tests/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.rs b/tests/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.rs index 8d3bb3262..8d3bb3262 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.rs +++ b/tests/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.stderr b/tests/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.stderr index a8ca9622a..a8ca9622a 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.stderr +++ b/tests/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/capture-enum-field.rs b/tests/ui/closures/2229_closure_analysis/capture-enum-field.rs index bbe3aa31a..bbe3aa31a 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-enum-field.rs +++ b/tests/ui/closures/2229_closure_analysis/capture-enum-field.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-enums.rs b/tests/ui/closures/2229_closure_analysis/capture-enums.rs index 322ae99b8..322ae99b8 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-enums.rs +++ b/tests/ui/closures/2229_closure_analysis/capture-enums.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-enums.stderr b/tests/ui/closures/2229_closure_analysis/capture-enums.stderr index 8a6ba8444..8a6ba8444 100644 --- a/src/test/ui/closures/2229_closure_analysis/capture-enums.stderr +++ b/tests/ui/closures/2229_closure_analysis/capture-enums.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/deep-multilevel-struct.rs b/tests/ui/closures/2229_closure_analysis/deep-multilevel-struct.rs index 3341166e2..3341166e2 100644 --- a/src/test/ui/closures/2229_closure_analysis/deep-multilevel-struct.rs +++ b/tests/ui/closures/2229_closure_analysis/deep-multilevel-struct.rs diff --git a/src/test/ui/closures/2229_closure_analysis/deep-multilevel-struct.stderr b/tests/ui/closures/2229_closure_analysis/deep-multilevel-struct.stderr index 29e1af043..29e1af043 100644 --- a/src/test/ui/closures/2229_closure_analysis/deep-multilevel-struct.stderr +++ b/tests/ui/closures/2229_closure_analysis/deep-multilevel-struct.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/deep-multilevel-tuple.rs b/tests/ui/closures/2229_closure_analysis/deep-multilevel-tuple.rs index 34b0132f3..34b0132f3 100644 --- a/src/test/ui/closures/2229_closure_analysis/deep-multilevel-tuple.rs +++ b/tests/ui/closures/2229_closure_analysis/deep-multilevel-tuple.rs diff --git a/src/test/ui/closures/2229_closure_analysis/deep-multilevel-tuple.stderr b/tests/ui/closures/2229_closure_analysis/deep-multilevel-tuple.stderr index e91751676..e91751676 100644 --- a/src/test/ui/closures/2229_closure_analysis/deep-multilevel-tuple.stderr +++ b/tests/ui/closures/2229_closure_analysis/deep-multilevel-tuple.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/destructure_patterns.rs b/tests/ui/closures/2229_closure_analysis/destructure_patterns.rs index 6c65a7bf8..6c65a7bf8 100644 --- a/src/test/ui/closures/2229_closure_analysis/destructure_patterns.rs +++ b/tests/ui/closures/2229_closure_analysis/destructure_patterns.rs diff --git a/src/test/ui/closures/2229_closure_analysis/destructure_patterns.stderr b/tests/ui/closures/2229_closure_analysis/destructure_patterns.stderr index 44fbe6d81..44fbe6d81 100644 --- a/src/test/ui/closures/2229_closure_analysis/destructure_patterns.stderr +++ b/tests/ui/closures/2229_closure_analysis/destructure_patterns.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/arrays.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/arrays.rs index f97e60daf..f97e60daf 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/arrays.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/arrays.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/arrays.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/arrays.stderr index 4f41060dc..4f41060dc 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/arrays.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/arrays.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.rs index 3664d76c2..3664d76c2 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.stderr index 341d2bc65..341d2bc65 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.rs index ae416bab6..ae416bab6 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.stderr index 584bb862b..584bb862b 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.rs index bdd6cb79b..00f50c33e 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.rs @@ -8,10 +8,9 @@ struct Point { fn main() { let mut c = { let mut p = Point {x: "1".to_string(), y: "2".to_string() }; - || { + || { //~ ERROR closure may outlive the current block, but it borrows `p` let x = &mut p.x; println!("{:?}", p); - //~^ ERROR `p` does not live long enough } }; c(); diff --git a/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.stderr new file mode 100644 index 000000000..ee9238047 --- /dev/null +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.stderr @@ -0,0 +1,22 @@ +error[E0373]: closure may outlive the current block, but it borrows `p`, which is owned by the current block + --> $DIR/borrowck-3.rs:11:9 + | +LL | || { + | ^^ may outlive borrowed value `p` +LL | let x = &mut p.x; +LL | println!("{:?}", p); + | - `p` is borrowed here + | +note: block requires argument type to outlive `'1` + --> $DIR/borrowck-3.rs:9:9 + | +LL | let mut c = { + | ^^^^^ +help: to force the closure to take ownership of `p` (and any other referenced variables), use the `move` keyword + | +LL | move || { + | ++++ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0373`. diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.rs index a2290d850..a2290d850 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.stderr index 46379a381..46379a381 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.rs index 5ff7b1242..5ff7b1242 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.stderr index 5f1dae297..5f1dae297 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/box.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/box.rs index a110fa4e2..a110fa4e2 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/box.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/box.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/box.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/box.stderr index f8b178752..f8b178752 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/box.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/box.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.rs index 77effcb00..77effcb00 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.stderr index 38c530b80..38c530b80 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.rs index 25ee9a149..25ee9a149 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.stderr index 98414fa8a..98414fa8a 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.rs index f3be542e4..f3be542e4 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.stderr index 309c63e52..309c63e52 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.rs index aa85b55b1..aa85b55b1 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.stderr index 83d282aad..83d282aad 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.rs index bedb103cc..bedb103cc 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.stderr index 46323b752..46323b752 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.rs index 3277a83c4..3277a83c4 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.stderr index 25029cc7b..25029cc7b 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.rs index dc3a57ae7..dc3a57ae7 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.stderr index 06ef7baf9..06ef7baf9 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.rs index fa1328013..fa1328013 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.stderr index 3e77635f9..3e77635f9 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/liveness.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/liveness.rs index 3399bc001..3399bc001 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/liveness.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/liveness.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/liveness.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/liveness.stderr index cf414adc0..cf414adc0 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/liveness.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/liveness.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.rs index 465c9476b..465c9476b 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.stderr index 0410de4c7..0410de4c7 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.rs index fa73ff23f..fa73ff23f 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.stderr index ac4c9c937..ac4c9c937 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/mut_ref.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/mut_ref.rs index 3d5a31e8b..3d5a31e8b 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/mut_ref.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/mut_ref.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/mut_ref.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/mut_ref.stderr index 481d7e585..95f36fc04 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/mut_ref.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/mut_ref.stderr @@ -1,14 +1,16 @@ error[E0596]: cannot borrow `**ref_mref_x` as mutable, as it is behind a `&` reference --> $DIR/mut_ref.rs:12:13 | -LL | let ref_mref_x = &mref_x; - | ------- help: consider changing this to be a mutable reference: `&mut mref_x` -LL | LL | let c = || { | ^^ `ref_mref_x` is a `&` reference, so the data it refers to cannot be borrowed as mutable LL | LL | **ref_mref_x = y; | ------------ mutable borrow occurs due to use of `**ref_mref_x` in closure + | +help: consider changing this to be a mutable reference + | +LL | let ref_mref_x = &mut mref_x; + | ~~~~~~~~~~~ error[E0596]: cannot borrow `**mref_ref_x` as mutable, as it is behind a `&` reference --> $DIR/mut_ref.rs:26:13 diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/repr_packed.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/repr_packed.rs index 1488f3296..1488f3296 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/repr_packed.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/repr_packed.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/repr_packed.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/repr_packed.stderr index 508c4b911..508c4b911 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/repr_packed.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/repr_packed.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.rs index ed2d9a3de..ed2d9a3de 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.stderr index 06157b2af..06157b2af 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/union.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/union.rs index 46b54846e..46b54846e 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/union.rs +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/union.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/union.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/union.stderr index 7c34e2336..7c34e2336 100644 --- a/src/test/ui/closures/2229_closure_analysis/diagnostics/union.stderr +++ b/tests/ui/closures/2229_closure_analysis/diagnostics/union.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.rs b/tests/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.rs index 269cf76e6..269cf76e6 100644 --- a/src/test/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.rs +++ b/tests/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.rs diff --git a/src/test/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.stderr b/tests/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.stderr index b936c5ee3..b936c5ee3 100644 --- a/src/test/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.stderr +++ b/tests/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/filter-on-struct-member.rs b/tests/ui/closures/2229_closure_analysis/filter-on-struct-member.rs index bfa3ebcd6..bfa3ebcd6 100644 --- a/src/test/ui/closures/2229_closure_analysis/filter-on-struct-member.rs +++ b/tests/ui/closures/2229_closure_analysis/filter-on-struct-member.rs diff --git a/src/test/ui/closures/2229_closure_analysis/filter-on-struct-member.stderr b/tests/ui/closures/2229_closure_analysis/filter-on-struct-member.stderr index 10e0d076b..10e0d076b 100644 --- a/src/test/ui/closures/2229_closure_analysis/filter-on-struct-member.stderr +++ b/tests/ui/closures/2229_closure_analysis/filter-on-struct-member.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/issue-87378.rs b/tests/ui/closures/2229_closure_analysis/issue-87378.rs index 75901a571..75901a571 100644 --- a/src/test/ui/closures/2229_closure_analysis/issue-87378.rs +++ b/tests/ui/closures/2229_closure_analysis/issue-87378.rs diff --git a/src/test/ui/closures/2229_closure_analysis/issue-87378.stderr b/tests/ui/closures/2229_closure_analysis/issue-87378.stderr index 16c3f7c97..16c3f7c97 100644 --- a/src/test/ui/closures/2229_closure_analysis/issue-87378.stderr +++ b/tests/ui/closures/2229_closure_analysis/issue-87378.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/issue-87987.rs b/tests/ui/closures/2229_closure_analysis/issue-87987.rs index d26343c33..d26343c33 100644 --- a/src/test/ui/closures/2229_closure_analysis/issue-87987.rs +++ b/tests/ui/closures/2229_closure_analysis/issue-87987.rs diff --git a/src/test/ui/closures/2229_closure_analysis/issue-87987.stderr b/tests/ui/closures/2229_closure_analysis/issue-87987.stderr index 5696a010c..5696a010c 100644 --- a/src/test/ui/closures/2229_closure_analysis/issue-87987.stderr +++ b/tests/ui/closures/2229_closure_analysis/issue-87987.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/issue-88118-2.rs b/tests/ui/closures/2229_closure_analysis/issue-88118-2.rs index 0cfb1a55b..0cfb1a55b 100644 --- a/src/test/ui/closures/2229_closure_analysis/issue-88118-2.rs +++ b/tests/ui/closures/2229_closure_analysis/issue-88118-2.rs diff --git a/src/test/ui/closures/2229_closure_analysis/issue-88118-2.stderr b/tests/ui/closures/2229_closure_analysis/issue-88118-2.stderr index b3cb558f9..b3cb558f9 100644 --- a/src/test/ui/closures/2229_closure_analysis/issue-88118-2.stderr +++ b/tests/ui/closures/2229_closure_analysis/issue-88118-2.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/issue-88476.rs b/tests/ui/closures/2229_closure_analysis/issue-88476.rs index f5906d306..f5906d306 100644 --- a/src/test/ui/closures/2229_closure_analysis/issue-88476.rs +++ b/tests/ui/closures/2229_closure_analysis/issue-88476.rs diff --git a/src/test/ui/closures/2229_closure_analysis/issue-88476.stderr b/tests/ui/closures/2229_closure_analysis/issue-88476.stderr index c7c9ecbbb..c7c9ecbbb 100644 --- a/src/test/ui/closures/2229_closure_analysis/issue-88476.stderr +++ b/tests/ui/closures/2229_closure_analysis/issue-88476.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/issue-89606.rs b/tests/ui/closures/2229_closure_analysis/issue-89606.rs index 1bb6aa40f..1bb6aa40f 100644 --- a/src/test/ui/closures/2229_closure_analysis/issue-89606.rs +++ b/tests/ui/closures/2229_closure_analysis/issue-89606.rs diff --git a/src/test/ui/closures/2229_closure_analysis/issue-90465.fixed b/tests/ui/closures/2229_closure_analysis/issue-90465.fixed index 4e0b18e72..4e0b18e72 100644 --- a/src/test/ui/closures/2229_closure_analysis/issue-90465.fixed +++ b/tests/ui/closures/2229_closure_analysis/issue-90465.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/issue-90465.rs b/tests/ui/closures/2229_closure_analysis/issue-90465.rs index 466e6dbab..466e6dbab 100644 --- a/src/test/ui/closures/2229_closure_analysis/issue-90465.rs +++ b/tests/ui/closures/2229_closure_analysis/issue-90465.rs diff --git a/src/test/ui/closures/2229_closure_analysis/issue-90465.stderr b/tests/ui/closures/2229_closure_analysis/issue-90465.stderr index c1679c6b6..c1679c6b6 100644 --- a/src/test/ui/closures/2229_closure_analysis/issue-90465.stderr +++ b/tests/ui/closures/2229_closure_analysis/issue-90465.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/issue-92724-needsdrop-query-cycle.rs b/tests/ui/closures/2229_closure_analysis/issue-92724-needsdrop-query-cycle.rs index a3b17755f..a3b17755f 100644 --- a/src/test/ui/closures/2229_closure_analysis/issue-92724-needsdrop-query-cycle.rs +++ b/tests/ui/closures/2229_closure_analysis/issue-92724-needsdrop-query-cycle.rs diff --git a/src/test/ui/closures/2229_closure_analysis/issue_88118.rs b/tests/ui/closures/2229_closure_analysis/issue_88118.rs index 453b7e04a..453b7e04a 100644 --- a/src/test/ui/closures/2229_closure_analysis/issue_88118.rs +++ b/tests/ui/closures/2229_closure_analysis/issue_88118.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/auxiliary/match_non_exhaustive_lib.rs b/tests/ui/closures/2229_closure_analysis/match/auxiliary/match_non_exhaustive_lib.rs index 4060c4093..4060c4093 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/auxiliary/match_non_exhaustive_lib.rs +++ b/tests/ui/closures/2229_closure_analysis/match/auxiliary/match_non_exhaustive_lib.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/issue-87097.rs b/tests/ui/closures/2229_closure_analysis/match/issue-87097.rs index 815fc0a71..815fc0a71 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/issue-87097.rs +++ b/tests/ui/closures/2229_closure_analysis/match/issue-87097.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/issue-87097.stderr b/tests/ui/closures/2229_closure_analysis/match/issue-87097.stderr index 39ec71ba2..39ec71ba2 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/issue-87097.stderr +++ b/tests/ui/closures/2229_closure_analysis/match/issue-87097.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/match/issue-87426.rs b/tests/ui/closures/2229_closure_analysis/match/issue-87426.rs index 74506979a..74506979a 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/issue-87426.rs +++ b/tests/ui/closures/2229_closure_analysis/match/issue-87426.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/issue-87988.rs b/tests/ui/closures/2229_closure_analysis/match/issue-87988.rs index 27e7fabf1..27e7fabf1 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/issue-87988.rs +++ b/tests/ui/closures/2229_closure_analysis/match/issue-87988.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/issue-88331.rs b/tests/ui/closures/2229_closure_analysis/match/issue-88331.rs index 0a6d71c68..0a6d71c68 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/issue-88331.rs +++ b/tests/ui/closures/2229_closure_analysis/match/issue-88331.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/issue-88331.stderr b/tests/ui/closures/2229_closure_analysis/match/issue-88331.stderr index 7e22defa9..7e22defa9 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/issue-88331.stderr +++ b/tests/ui/closures/2229_closure_analysis/match/issue-88331.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_1.rs b/tests/ui/closures/2229_closure_analysis/match/match-edge-cases_1.rs index 914ebbe26..914ebbe26 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_1.rs +++ b/tests/ui/closures/2229_closure_analysis/match/match-edge-cases_1.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_2.rs b/tests/ui/closures/2229_closure_analysis/match/match-edge-cases_2.rs index ae724f9c3..ae724f9c3 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_2.rs +++ b/tests/ui/closures/2229_closure_analysis/match/match-edge-cases_2.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_2.stderr b/tests/ui/closures/2229_closure_analysis/match/match-edge-cases_2.stderr index 1e42d73c6..1e42d73c6 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_2.stderr +++ b/tests/ui/closures/2229_closure_analysis/match/match-edge-cases_2.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.rs b/tests/ui/closures/2229_closure_analysis/match/non-exhaustive-match.rs index 972c24c23..972c24c23 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.rs +++ b/tests/ui/closures/2229_closure_analysis/match/non-exhaustive-match.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.stderr b/tests/ui/closures/2229_closure_analysis/match/non-exhaustive-match.stderr index 3a5fad154..3a5fad154 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.stderr +++ b/tests/ui/closures/2229_closure_analysis/match/non-exhaustive-match.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.rs b/tests/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.rs index 69cf920de..69cf920de 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.rs +++ b/tests/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.stderr b/tests/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.stderr index ad061d93c..ad061d93c 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.stderr +++ b/tests/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.rs b/tests/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.rs index 56f5ac44d..56f5ac44d 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.rs +++ b/tests/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.stderr b/tests/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.stderr index 460813333..460813333 100644 --- a/src/test/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.stderr +++ b/tests/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.fixed b/tests/ui/closures/2229_closure_analysis/migrations/auto_traits.fixed index 26703fbf8..26703fbf8 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.fixed +++ b/tests/ui/closures/2229_closure_analysis/migrations/auto_traits.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.rs b/tests/ui/closures/2229_closure_analysis/migrations/auto_traits.rs index 932db51d4..932db51d4 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/auto_traits.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.stderr b/tests/ui/closures/2229_closure_analysis/migrations/auto_traits.stderr index 3a42cc8b8..3a42cc8b8 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.stderr +++ b/tests/ui/closures/2229_closure_analysis/migrations/auto_traits.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.fixed b/tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.fixed index 9a6db588c..9a6db588c 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.fixed +++ b/tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.rs b/tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.rs index 08cc24b4b..08cc24b4b 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.stderr b/tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.stderr index bb17e3a34..bb17e3a34 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.stderr +++ b/tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop.fixed b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop.fixed index 2652bf598..2652bf598 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop.fixed +++ b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop.rs b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop.rs index 2652bf598..2652bf598 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.fixed b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.fixed index d985e3bb9..d985e3bb9 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.fixed +++ b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.rs b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.rs index f95d34eeb..f95d34eeb 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.stderr b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.stderr index a0795c129..a0795c129 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.stderr +++ b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_no_migrations.rs b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_no_migrations.rs index 3f184a67f..3f184a67f 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_no_migrations.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_no_migrations.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.rs b/tests/ui/closures/2229_closure_analysis/migrations/issue-78720.rs index ff5d28461..ff5d28461 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/issue-78720.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr b/tests/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr index 36a80e694..36a80e694 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr +++ b/tests/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/issue-86753.rs b/tests/ui/closures/2229_closure_analysis/migrations/issue-86753.rs index fce9cac62..fce9cac62 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/issue-86753.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/issue-86753.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/issue-90024-adt-correct-subst.rs b/tests/ui/closures/2229_closure_analysis/migrations/issue-90024-adt-correct-subst.rs index ed8cb042b..ed8cb042b 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/issue-90024-adt-correct-subst.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/issue-90024-adt-correct-subst.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/macro.fixed b/tests/ui/closures/2229_closure_analysis/migrations/macro.fixed index 31fe494dc..31fe494dc 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/macro.fixed +++ b/tests/ui/closures/2229_closure_analysis/migrations/macro.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/macro.rs b/tests/ui/closures/2229_closure_analysis/migrations/macro.rs index 0f0c49749..0f0c49749 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/macro.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/macro.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/macro.stderr b/tests/ui/closures/2229_closure_analysis/migrations/macro.stderr index c17edce72..c17edce72 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/macro.stderr +++ b/tests/ui/closures/2229_closure_analysis/migrations/macro.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.fixed b/tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.fixed index ce8b60725..ce8b60725 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.fixed +++ b/tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.rs b/tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.rs index 2237bebd7..2237bebd7 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.stderr b/tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.stderr index 94526487e..94526487e 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.stderr +++ b/tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.fixed b/tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.fixed index ff2244a8e..ff2244a8e 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.fixed +++ b/tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.rs b/tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.rs index 52e96d013..52e96d013 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.stderr b/tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.stderr index e10898f98..e10898f98 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.stderr +++ b/tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.fixed b/tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.fixed index 173dd2e2c..173dd2e2c 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.fixed +++ b/tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.rs b/tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.rs index cfc4555ca..cfc4555ca 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.stderr b/tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.stderr index efb264447..efb264447 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.stderr +++ b/tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/no_migrations.rs b/tests/ui/closures/2229_closure_analysis/migrations/no_migrations.rs index 8b75e226a..8b75e226a 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/no_migrations.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/no_migrations.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/old_name.rs b/tests/ui/closures/2229_closure_analysis/migrations/old_name.rs index 16e3cca7b..16e3cca7b 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/old_name.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/old_name.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/old_name.stderr b/tests/ui/closures/2229_closure_analysis/migrations/old_name.stderr index 47cb689fa..47cb689fa 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/old_name.stderr +++ b/tests/ui/closures/2229_closure_analysis/migrations/old_name.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/precise.fixed b/tests/ui/closures/2229_closure_analysis/migrations/precise.fixed index 7892a72c7..7892a72c7 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/precise.fixed +++ b/tests/ui/closures/2229_closure_analysis/migrations/precise.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/precise.rs b/tests/ui/closures/2229_closure_analysis/migrations/precise.rs index f5e99002b..f5e99002b 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/precise.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/precise.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/precise.stderr b/tests/ui/closures/2229_closure_analysis/migrations/precise.stderr index eff26a4d6..eff26a4d6 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/precise.stderr +++ b/tests/ui/closures/2229_closure_analysis/migrations/precise.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/precise_no_migrations.rs b/tests/ui/closures/2229_closure_analysis/migrations/precise_no_migrations.rs index 587d71c40..587d71c40 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/precise_no_migrations.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/precise_no_migrations.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.fixed b/tests/ui/closures/2229_closure_analysis/migrations/significant_drop.fixed index e99dbb5ab..e99dbb5ab 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.fixed +++ b/tests/ui/closures/2229_closure_analysis/migrations/significant_drop.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.rs b/tests/ui/closures/2229_closure_analysis/migrations/significant_drop.rs index 62a984c9e..62a984c9e 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/significant_drop.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.stderr b/tests/ui/closures/2229_closure_analysis/migrations/significant_drop.stderr index 54ad20f89..54ad20f89 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.stderr +++ b/tests/ui/closures/2229_closure_analysis/migrations/significant_drop.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/unpin_no_migration.rs b/tests/ui/closures/2229_closure_analysis/migrations/unpin_no_migration.rs index 39cf82053..39cf82053 100644 --- a/src/test/ui/closures/2229_closure_analysis/migrations/unpin_no_migration.rs +++ b/tests/ui/closures/2229_closure_analysis/migrations/unpin_no_migration.rs diff --git a/src/test/ui/closures/2229_closure_analysis/move_closure.rs b/tests/ui/closures/2229_closure_analysis/move_closure.rs index b542fa243..b542fa243 100644 --- a/src/test/ui/closures/2229_closure_analysis/move_closure.rs +++ b/tests/ui/closures/2229_closure_analysis/move_closure.rs diff --git a/src/test/ui/closures/2229_closure_analysis/move_closure.stderr b/tests/ui/closures/2229_closure_analysis/move_closure.stderr index fd80e05c6..fd80e05c6 100644 --- a/src/test/ui/closures/2229_closure_analysis/move_closure.stderr +++ b/tests/ui/closures/2229_closure_analysis/move_closure.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/multilevel-path-1.rs b/tests/ui/closures/2229_closure_analysis/multilevel-path-1.rs index a8a2acfa7..a8a2acfa7 100644 --- a/src/test/ui/closures/2229_closure_analysis/multilevel-path-1.rs +++ b/tests/ui/closures/2229_closure_analysis/multilevel-path-1.rs diff --git a/src/test/ui/closures/2229_closure_analysis/multilevel-path-1.stderr b/tests/ui/closures/2229_closure_analysis/multilevel-path-1.stderr index 29ad1c591..29ad1c591 100644 --- a/src/test/ui/closures/2229_closure_analysis/multilevel-path-1.stderr +++ b/tests/ui/closures/2229_closure_analysis/multilevel-path-1.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/multilevel-path-2.rs b/tests/ui/closures/2229_closure_analysis/multilevel-path-2.rs index e21fe318c..e21fe318c 100644 --- a/src/test/ui/closures/2229_closure_analysis/multilevel-path-2.rs +++ b/tests/ui/closures/2229_closure_analysis/multilevel-path-2.rs diff --git a/src/test/ui/closures/2229_closure_analysis/multilevel-path-2.stderr b/tests/ui/closures/2229_closure_analysis/multilevel-path-2.stderr index 929cba113..929cba113 100644 --- a/src/test/ui/closures/2229_closure_analysis/multilevel-path-2.stderr +++ b/tests/ui/closures/2229_closure_analysis/multilevel-path-2.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/nested-closure.rs b/tests/ui/closures/2229_closure_analysis/nested-closure.rs index 22eae744b..22eae744b 100644 --- a/src/test/ui/closures/2229_closure_analysis/nested-closure.rs +++ b/tests/ui/closures/2229_closure_analysis/nested-closure.rs diff --git a/src/test/ui/closures/2229_closure_analysis/nested-closure.stderr b/tests/ui/closures/2229_closure_analysis/nested-closure.stderr index a50d0c6a1..a50d0c6a1 100644 --- a/src/test/ui/closures/2229_closure_analysis/nested-closure.stderr +++ b/tests/ui/closures/2229_closure_analysis/nested-closure.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/optimization/edge_case.rs b/tests/ui/closures/2229_closure_analysis/optimization/edge_case.rs index e7edc0bbc..e7edc0bbc 100644 --- a/src/test/ui/closures/2229_closure_analysis/optimization/edge_case.rs +++ b/tests/ui/closures/2229_closure_analysis/optimization/edge_case.rs diff --git a/src/test/ui/closures/2229_closure_analysis/optimization/edge_case.stderr b/tests/ui/closures/2229_closure_analysis/optimization/edge_case.stderr index 87d5d5bee..87d5d5bee 100644 --- a/src/test/ui/closures/2229_closure_analysis/optimization/edge_case.stderr +++ b/tests/ui/closures/2229_closure_analysis/optimization/edge_case.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.rs b/tests/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.rs index 033fd6f17..033fd6f17 100644 --- a/src/test/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.rs +++ b/tests/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.rs diff --git a/src/test/ui/closures/2229_closure_analysis/path-with-array-access.rs b/tests/ui/closures/2229_closure_analysis/path-with-array-access.rs index 0c1031931..0c1031931 100644 --- a/src/test/ui/closures/2229_closure_analysis/path-with-array-access.rs +++ b/tests/ui/closures/2229_closure_analysis/path-with-array-access.rs diff --git a/src/test/ui/closures/2229_closure_analysis/path-with-array-access.stderr b/tests/ui/closures/2229_closure_analysis/path-with-array-access.stderr index 124b7bf6f..124b7bf6f 100644 --- a/src/test/ui/closures/2229_closure_analysis/path-with-array-access.stderr +++ b/tests/ui/closures/2229_closure_analysis/path-with-array-access.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order.rs b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order.rs index 2f8cddc06..2f8cddc06 100644 --- a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order.rs +++ b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order.rs diff --git a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order.stderr b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order.stderr index 2d1dc8727..2d1dc8727 100644 --- a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order.stderr +++ b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.rs b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.rs index 1cae776dd..1cae776dd 100644 --- a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.rs +++ b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.rs diff --git a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_eighteen.run.stdout b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_eighteen.run.stdout index 557d047c1..557d047c1 100644 --- a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_eighteen.run.stdout +++ b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_eighteen.run.stdout diff --git a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_twentyone.run.stdout b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_twentyone.run.stdout index 557d047c1..557d047c1 100644 --- a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_twentyone.run.stdout +++ b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_twentyone.run.stdout diff --git a/src/test/ui/closures/2229_closure_analysis/repr_packed.rs b/tests/ui/closures/2229_closure_analysis/repr_packed.rs index f23670f63..f23670f63 100644 --- a/src/test/ui/closures/2229_closure_analysis/repr_packed.rs +++ b/tests/ui/closures/2229_closure_analysis/repr_packed.rs diff --git a/src/test/ui/closures/2229_closure_analysis/repr_packed.stderr b/tests/ui/closures/2229_closure_analysis/repr_packed.stderr index 580061ebc..580061ebc 100644 --- a/src/test/ui/closures/2229_closure_analysis/repr_packed.stderr +++ b/tests/ui/closures/2229_closure_analysis/repr_packed.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/box.rs b/tests/ui/closures/2229_closure_analysis/run_pass/box.rs index 73aca288f..73aca288f 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/box.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/box.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/by_value.rs b/tests/ui/closures/2229_closure_analysis/run_pass/by_value.rs index f8752fe1c..f8752fe1c 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/by_value.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/by_value.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-struct.rs b/tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-struct.rs index 3cb1eb329..3cb1eb329 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-struct.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-struct.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple-mut.rs b/tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple-mut.rs index 0f79b7ae7..0f79b7ae7 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple-mut.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple-mut.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple.rs b/tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple.rs index 81f0328b9..81f0328b9 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/capture_with_wildcard_match.rs b/tests/ui/closures/2229_closure_analysis/run_pass/capture_with_wildcard_match.rs index cea02fbe1..cea02fbe1 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/capture_with_wildcard_match.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/capture_with_wildcard_match.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.rs b/tests/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.rs index 5c278bff9..5c278bff9 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.stderr b/tests/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.stderr index cf8bd7a0a..cf8bd7a0a 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.stderr +++ b/tests/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.rs b/tests/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.rs index dacc2c616..dacc2c616 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.stderr b/tests/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.stderr index 7706f68ba..7706f68ba 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.stderr +++ b/tests/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/disjoint-capture-in-same-closure.rs b/tests/ui/closures/2229_closure_analysis/run_pass/disjoint-capture-in-same-closure.rs index 03400e0ee..03400e0ee 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/disjoint-capture-in-same-closure.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/disjoint-capture-in-same-closure.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/drop_then_use_fake_reads.rs b/tests/ui/closures/2229_closure_analysis/run_pass/drop_then_use_fake_reads.rs index 477fdd613..477fdd613 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/drop_then_use_fake_reads.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/drop_then_use_fake_reads.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/edition.rs b/tests/ui/closures/2229_closure_analysis/run_pass/edition.rs index 20bbe1d89..20bbe1d89 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/edition.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/edition.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/filter-on-struct-member.rs b/tests/ui/closures/2229_closure_analysis/run_pass/filter-on-struct-member.rs index e19f5ff1b..e19f5ff1b 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/filter-on-struct-member.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/filter-on-struct-member.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/fru_syntax.rs b/tests/ui/closures/2229_closure_analysis/run_pass/fru_syntax.rs index 1286613cb..1286613cb 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/fru_syntax.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/fru_syntax.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/issue-87378.rs b/tests/ui/closures/2229_closure_analysis/run_pass/issue-87378.rs index c64475fda..c64475fda 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/issue-87378.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/issue-87378.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/issue-88372.rs b/tests/ui/closures/2229_closure_analysis/run_pass/issue-88372.rs index 25fbb6cb9..25fbb6cb9 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/issue-88372.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/issue-88372.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/issue-88431.rs b/tests/ui/closures/2229_closure_analysis/run_pass/issue-88431.rs index 999620530..999620530 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/issue-88431.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/issue-88431.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/issue-88476.rs b/tests/ui/closures/2229_closure_analysis/run_pass/issue-88476.rs index f44c2af80..f44c2af80 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/issue-88476.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/issue-88476.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs b/tests/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs index d2375aa69..d2375aa69 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/move_closure.rs b/tests/ui/closures/2229_closure_analysis/run_pass/move_closure.rs index f76965bdd..f76965bdd 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/move_closure.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/move_closure.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-1.rs b/tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-1.rs index 624e0ff22..624e0ff22 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-1.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-1.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-2.rs b/tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-2.rs index bd8addd37..bd8addd37 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-2.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-2.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-3.rs b/tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-3.rs index 8fc0efb60..8fc0efb60 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-3.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-3.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/mut_ref.rs b/tests/ui/closures/2229_closure_analysis/run_pass/mut_ref.rs index 9f0c4d96a..9f0c4d96a 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/mut_ref.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/mut_ref.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/mut_ref_struct_mem.rs b/tests/ui/closures/2229_closure_analysis/run_pass/mut_ref_struct_mem.rs index a85335438..a85335438 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/mut_ref_struct_mem.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/mut_ref_struct_mem.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/nested-closure.rs b/tests/ui/closures/2229_closure_analysis/run_pass/nested-closure.rs index a80b40bb4..a80b40bb4 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/nested-closure.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/nested-closure.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/struct-pattern-matching-with-methods.rs b/tests/ui/closures/2229_closure_analysis/run_pass/struct-pattern-matching-with-methods.rs index ed222b314..ed222b314 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/struct-pattern-matching-with-methods.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/struct-pattern-matching-with-methods.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/tuple-struct-pattern-matching-with-methods.rs b/tests/ui/closures/2229_closure_analysis/run_pass/tuple-struct-pattern-matching-with-methods.rs index f3f44433c..f3f44433c 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/tuple-struct-pattern-matching-with-methods.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/tuple-struct-pattern-matching-with-methods.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/unsafe_ptr.rs b/tests/ui/closures/2229_closure_analysis/run_pass/unsafe_ptr.rs index 3f7ddf93f..3f7ddf93f 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/unsafe_ptr.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/unsafe_ptr.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/use_of_mutable_borrow_and_fake_reads.rs b/tests/ui/closures/2229_closure_analysis/run_pass/use_of_mutable_borrow_and_fake_reads.rs index 0206927cc..0206927cc 100644 --- a/src/test/ui/closures/2229_closure_analysis/run_pass/use_of_mutable_borrow_and_fake_reads.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/use_of_mutable_borrow_and_fake_reads.rs diff --git a/src/test/ui/closures/2229_closure_analysis/simple-struct-min-capture.rs b/tests/ui/closures/2229_closure_analysis/simple-struct-min-capture.rs index 563095d44..563095d44 100644 --- a/src/test/ui/closures/2229_closure_analysis/simple-struct-min-capture.rs +++ b/tests/ui/closures/2229_closure_analysis/simple-struct-min-capture.rs diff --git a/src/test/ui/closures/2229_closure_analysis/simple-struct-min-capture.stderr b/tests/ui/closures/2229_closure_analysis/simple-struct-min-capture.stderr index 05d79797a..05d79797a 100644 --- a/src/test/ui/closures/2229_closure_analysis/simple-struct-min-capture.stderr +++ b/tests/ui/closures/2229_closure_analysis/simple-struct-min-capture.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/unsafe_ptr.rs b/tests/ui/closures/2229_closure_analysis/unsafe_ptr.rs index eab9f9d08..eab9f9d08 100644 --- a/src/test/ui/closures/2229_closure_analysis/unsafe_ptr.rs +++ b/tests/ui/closures/2229_closure_analysis/unsafe_ptr.rs diff --git a/src/test/ui/closures/2229_closure_analysis/unsafe_ptr.stderr b/tests/ui/closures/2229_closure_analysis/unsafe_ptr.stderr index e740a4d2d..e740a4d2d 100644 --- a/src/test/ui/closures/2229_closure_analysis/unsafe_ptr.stderr +++ b/tests/ui/closures/2229_closure_analysis/unsafe_ptr.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/wild_patterns.rs b/tests/ui/closures/2229_closure_analysis/wild_patterns.rs index a795088a1..a795088a1 100644 --- a/src/test/ui/closures/2229_closure_analysis/wild_patterns.rs +++ b/tests/ui/closures/2229_closure_analysis/wild_patterns.rs diff --git a/src/test/ui/closures/2229_closure_analysis/wild_patterns.stderr b/tests/ui/closures/2229_closure_analysis/wild_patterns.stderr index c64378091..c64378091 100644 --- a/src/test/ui/closures/2229_closure_analysis/wild_patterns.stderr +++ b/tests/ui/closures/2229_closure_analysis/wild_patterns.stderr diff --git a/src/test/ui/closures/add_semicolon_non_block_closure.rs b/tests/ui/closures/add_semicolon_non_block_closure.rs index 3ae91be60..3ae91be60 100644 --- a/src/test/ui/closures/add_semicolon_non_block_closure.rs +++ b/tests/ui/closures/add_semicolon_non_block_closure.rs diff --git a/src/test/ui/closures/add_semicolon_non_block_closure.stderr b/tests/ui/closures/add_semicolon_non_block_closure.stderr index ed829fc98..ed829fc98 100644 --- a/src/test/ui/closures/add_semicolon_non_block_closure.stderr +++ b/tests/ui/closures/add_semicolon_non_block_closure.stderr diff --git a/src/test/ui/closures/binder/async-closure-with-binder.rs b/tests/ui/closures/binder/async-closure-with-binder.rs index 4fa599d37..4fa599d37 100644 --- a/src/test/ui/closures/binder/async-closure-with-binder.rs +++ b/tests/ui/closures/binder/async-closure-with-binder.rs diff --git a/src/test/ui/closures/binder/async-closure-with-binder.stderr b/tests/ui/closures/binder/async-closure-with-binder.stderr index 1d4628b1a..1d4628b1a 100644 --- a/src/test/ui/closures/binder/async-closure-with-binder.stderr +++ b/tests/ui/closures/binder/async-closure-with-binder.stderr diff --git a/src/test/ui/closures/binder/disallow-const.rs b/tests/ui/closures/binder/disallow-const.rs index 72ad6185d..72ad6185d 100644 --- a/src/test/ui/closures/binder/disallow-const.rs +++ b/tests/ui/closures/binder/disallow-const.rs diff --git a/src/test/ui/closures/binder/disallow-const.stderr b/tests/ui/closures/binder/disallow-const.stderr index 3c3b43d8c..3c3b43d8c 100644 --- a/src/test/ui/closures/binder/disallow-const.stderr +++ b/tests/ui/closures/binder/disallow-const.stderr diff --git a/src/test/ui/closures/binder/disallow-ty.rs b/tests/ui/closures/binder/disallow-ty.rs index bbe3d8488..bbe3d8488 100644 --- a/src/test/ui/closures/binder/disallow-ty.rs +++ b/tests/ui/closures/binder/disallow-ty.rs diff --git a/src/test/ui/closures/binder/disallow-ty.stderr b/tests/ui/closures/binder/disallow-ty.stderr index 51b6773ed..51b6773ed 100644 --- a/src/test/ui/closures/binder/disallow-ty.stderr +++ b/tests/ui/closures/binder/disallow-ty.stderr diff --git a/src/test/ui/closures/binder/implicit-return.rs b/tests/ui/closures/binder/implicit-return.rs index d34e5721d..d34e5721d 100644 --- a/src/test/ui/closures/binder/implicit-return.rs +++ b/tests/ui/closures/binder/implicit-return.rs diff --git a/src/test/ui/closures/binder/implicit-return.stderr b/tests/ui/closures/binder/implicit-return.stderr index 5bfb97113..5bfb97113 100644 --- a/src/test/ui/closures/binder/implicit-return.stderr +++ b/tests/ui/closures/binder/implicit-return.stderr diff --git a/src/test/ui/closures/binder/implicit-stuff.rs b/tests/ui/closures/binder/implicit-stuff.rs index 09e4c747a..09e4c747a 100644 --- a/src/test/ui/closures/binder/implicit-stuff.rs +++ b/tests/ui/closures/binder/implicit-stuff.rs diff --git a/src/test/ui/closures/binder/implicit-stuff.stderr b/tests/ui/closures/binder/implicit-stuff.stderr index 779a08a44..779a08a44 100644 --- a/src/test/ui/closures/binder/implicit-stuff.stderr +++ b/tests/ui/closures/binder/implicit-stuff.stderr diff --git a/src/test/ui/closures/binder/late-bound-in-body.rs b/tests/ui/closures/binder/late-bound-in-body.rs index bb5c7552f..bb5c7552f 100644 --- a/src/test/ui/closures/binder/late-bound-in-body.rs +++ b/tests/ui/closures/binder/late-bound-in-body.rs diff --git a/src/test/ui/closures/binder/nested-closures-regions.rs b/tests/ui/closures/binder/nested-closures-regions.rs index 6bfc6c80b..6bfc6c80b 100644 --- a/src/test/ui/closures/binder/nested-closures-regions.rs +++ b/tests/ui/closures/binder/nested-closures-regions.rs diff --git a/src/test/ui/closures/binder/nested-closures-regions.stderr b/tests/ui/closures/binder/nested-closures-regions.stderr index b385e0ed6..b385e0ed6 100644 --- a/src/test/ui/closures/binder/nested-closures-regions.stderr +++ b/tests/ui/closures/binder/nested-closures-regions.stderr diff --git a/src/test/ui/closures/binder/nested-closures.rs b/tests/ui/closures/binder/nested-closures.rs index b3c36e7ee..b3c36e7ee 100644 --- a/src/test/ui/closures/binder/nested-closures.rs +++ b/tests/ui/closures/binder/nested-closures.rs diff --git a/src/test/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.rs b/tests/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.rs index b476dd50c..b476dd50c 100644 --- a/src/test/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.rs +++ b/tests/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.rs diff --git a/src/test/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.stderr b/tests/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.stderr index 1381acc15..1381acc15 100644 --- a/src/test/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.stderr +++ b/tests/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.stderr diff --git a/src/test/ui/closures/closure-array-break-length.rs b/tests/ui/closures/closure-array-break-length.rs index fda590fda..fda590fda 100644 --- a/src/test/ui/closures/closure-array-break-length.rs +++ b/tests/ui/closures/closure-array-break-length.rs diff --git a/src/test/ui/closures/closure-array-break-length.stderr b/tests/ui/closures/closure-array-break-length.stderr index 7e0b0027a..7e0b0027a 100644 --- a/src/test/ui/closures/closure-array-break-length.stderr +++ b/tests/ui/closures/closure-array-break-length.stderr diff --git a/src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs b/tests/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs index 039cf3e04..039cf3e04 100644 --- a/src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs +++ b/tests/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs diff --git a/src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.stderr b/tests/ui/closures/closure-bounds-cant-promote-superkind-in-struct.stderr index bf6ec5c36..bf6ec5c36 100644 --- a/src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.stderr +++ b/tests/ui/closures/closure-bounds-cant-promote-superkind-in-struct.stderr diff --git a/src/test/ui/closures/closure-bounds-static-cant-capture-borrowed.rs b/tests/ui/closures/closure-bounds-static-cant-capture-borrowed.rs index 7327d8256..7327d8256 100644 --- a/src/test/ui/closures/closure-bounds-static-cant-capture-borrowed.rs +++ b/tests/ui/closures/closure-bounds-static-cant-capture-borrowed.rs diff --git a/src/test/ui/closures/closure-bounds-static-cant-capture-borrowed.stderr b/tests/ui/closures/closure-bounds-static-cant-capture-borrowed.stderr index 85df5c1e5..85df5c1e5 100644 --- a/src/test/ui/closures/closure-bounds-static-cant-capture-borrowed.stderr +++ b/tests/ui/closures/closure-bounds-static-cant-capture-borrowed.stderr diff --git a/src/test/ui/closures/closure-bounds-subtype.rs b/tests/ui/closures/closure-bounds-subtype.rs index 4888cbfcc..4888cbfcc 100644 --- a/src/test/ui/closures/closure-bounds-subtype.rs +++ b/tests/ui/closures/closure-bounds-subtype.rs diff --git a/src/test/ui/closures/closure-bounds-subtype.stderr b/tests/ui/closures/closure-bounds-subtype.stderr index 8ad8273fc..8ad8273fc 100644 --- a/src/test/ui/closures/closure-bounds-subtype.stderr +++ b/tests/ui/closures/closure-bounds-subtype.stderr diff --git a/src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.polonius.stderr b/tests/ui/closures/closure-expected-type/expect-region-supply-region-2.polonius.stderr index 8846ccef3..8846ccef3 100644 --- a/src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.polonius.stderr +++ b/tests/ui/closures/closure-expected-type/expect-region-supply-region-2.polonius.stderr diff --git a/src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.rs b/tests/ui/closures/closure-expected-type/expect-region-supply-region-2.rs index 9b51bbd58..9b51bbd58 100644 --- a/src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.rs +++ b/tests/ui/closures/closure-expected-type/expect-region-supply-region-2.rs diff --git a/src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.stderr b/tests/ui/closures/closure-expected-type/expect-region-supply-region-2.stderr index 9aab51c98..9aab51c98 100644 --- a/src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.stderr +++ b/tests/ui/closures/closure-expected-type/expect-region-supply-region-2.stderr diff --git a/src/test/ui/closures/closure-expected-type/expect-region-supply-region.rs b/tests/ui/closures/closure-expected-type/expect-region-supply-region.rs index 55c6aa795..55c6aa795 100644 --- a/src/test/ui/closures/closure-expected-type/expect-region-supply-region.rs +++ b/tests/ui/closures/closure-expected-type/expect-region-supply-region.rs diff --git a/src/test/ui/closures/closure-expected-type/expect-region-supply-region.stderr b/tests/ui/closures/closure-expected-type/expect-region-supply-region.stderr index 0d97fa7e2..0d97fa7e2 100644 --- a/src/test/ui/closures/closure-expected-type/expect-region-supply-region.stderr +++ b/tests/ui/closures/closure-expected-type/expect-region-supply-region.stderr diff --git a/src/test/ui/closures/closure-expected.rs b/tests/ui/closures/closure-expected.rs index 68cac3dd8..68cac3dd8 100644 --- a/src/test/ui/closures/closure-expected.rs +++ b/tests/ui/closures/closure-expected.rs diff --git a/src/test/ui/closures/closure-expected.stderr b/tests/ui/closures/closure-expected.stderr index 7ffe3c1ef..87a5d67a4 100644 --- a/src/test/ui/closures/closure-expected.stderr +++ b/tests/ui/closures/closure-expected.stderr @@ -10,9 +10,6 @@ LL | let y = x.or_else(4); = note: wrap the `{integer}` in a closure with no arguments: `|| { /* code */ }` note: required by a bound in `Option::<T>::or_else` --> $SRC_DIR/core/src/option.rs:LL:COL - | -LL | F: ~const FnOnce() -> Option<T>, - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::or_else` error: aborting due to previous error diff --git a/src/test/ui/closures/closure-immutable-outer-variable.fixed b/tests/ui/closures/closure-immutable-outer-variable.fixed index 1b0feede3..1b0feede3 100644 --- a/src/test/ui/closures/closure-immutable-outer-variable.fixed +++ b/tests/ui/closures/closure-immutable-outer-variable.fixed diff --git a/src/test/ui/closures/closure-immutable-outer-variable.rs b/tests/ui/closures/closure-immutable-outer-variable.rs index 50ec1c614..50ec1c614 100644 --- a/src/test/ui/closures/closure-immutable-outer-variable.rs +++ b/tests/ui/closures/closure-immutable-outer-variable.rs diff --git a/src/test/ui/closures/closure-immutable-outer-variable.rs.fixed b/tests/ui/closures/closure-immutable-outer-variable.rs.fixed index 5c6358beb..5c6358beb 100644 --- a/src/test/ui/closures/closure-immutable-outer-variable.rs.fixed +++ b/tests/ui/closures/closure-immutable-outer-variable.rs.fixed diff --git a/src/test/ui/closures/closure-immutable-outer-variable.stderr b/tests/ui/closures/closure-immutable-outer-variable.stderr index 799097889..799097889 100644 --- a/src/test/ui/closures/closure-immutable-outer-variable.stderr +++ b/tests/ui/closures/closure-immutable-outer-variable.stderr diff --git a/src/test/ui/closures/closure-move-sync.rs b/tests/ui/closures/closure-move-sync.rs index ea2d1434c..ea2d1434c 100644 --- a/src/test/ui/closures/closure-move-sync.rs +++ b/tests/ui/closures/closure-move-sync.rs diff --git a/src/test/ui/closures/closure-move-sync.stderr b/tests/ui/closures/closure-move-sync.stderr index a2ca06b4e..64e3b51ea 100644 --- a/src/test/ui/closures/closure-move-sync.stderr +++ b/tests/ui/closures/closure-move-sync.stderr @@ -19,9 +19,6 @@ LL | let t = thread::spawn(|| { | ^^ note: required by a bound in `spawn` --> $SRC_DIR/std/src/thread/mod.rs:LL:COL - | -LL | F: Send + 'static, - | ^^^^ required by this bound in `spawn` error[E0277]: `Sender<()>` cannot be shared between threads safely --> $DIR/closure-move-sync.rs:18:19 @@ -40,9 +37,6 @@ LL | thread::spawn(|| tx.send(()).unwrap()); | ^^ note: required by a bound in `spawn` --> $SRC_DIR/std/src/thread/mod.rs:LL:COL - | -LL | F: Send + 'static, - | ^^^^ required by this bound in `spawn` error: aborting due to 2 previous errors diff --git a/src/test/ui/closures/closure-no-fn-1.rs b/tests/ui/closures/closure-no-fn-1.rs index 48c3e4725..48c3e4725 100644 --- a/src/test/ui/closures/closure-no-fn-1.rs +++ b/tests/ui/closures/closure-no-fn-1.rs diff --git a/src/test/ui/closures/closure-no-fn-1.stderr b/tests/ui/closures/closure-no-fn-1.stderr index eab7482e6..eab7482e6 100644 --- a/src/test/ui/closures/closure-no-fn-1.stderr +++ b/tests/ui/closures/closure-no-fn-1.stderr diff --git a/src/test/ui/closures/closure-no-fn-2.rs b/tests/ui/closures/closure-no-fn-2.rs index f3066f7a3..f3066f7a3 100644 --- a/src/test/ui/closures/closure-no-fn-2.rs +++ b/tests/ui/closures/closure-no-fn-2.rs diff --git a/src/test/ui/closures/closure-no-fn-2.stderr b/tests/ui/closures/closure-no-fn-2.stderr index e1f0143ab..e1f0143ab 100644 --- a/src/test/ui/closures/closure-no-fn-2.stderr +++ b/tests/ui/closures/closure-no-fn-2.stderr diff --git a/src/test/ui/closures/closure-no-fn-3.rs b/tests/ui/closures/closure-no-fn-3.rs index 53217c2f1..53217c2f1 100644 --- a/src/test/ui/closures/closure-no-fn-3.rs +++ b/tests/ui/closures/closure-no-fn-3.rs diff --git a/src/test/ui/closures/closure-no-fn-3.stderr b/tests/ui/closures/closure-no-fn-3.stderr index 6009389b1..6009389b1 100644 --- a/src/test/ui/closures/closure-no-fn-3.stderr +++ b/tests/ui/closures/closure-no-fn-3.stderr diff --git a/src/test/ui/closures/closure-no-fn-4.rs b/tests/ui/closures/closure-no-fn-4.rs index 275bff645..275bff645 100644 --- a/src/test/ui/closures/closure-no-fn-4.rs +++ b/tests/ui/closures/closure-no-fn-4.rs diff --git a/src/test/ui/closures/closure-no-fn-4.stderr b/tests/ui/closures/closure-no-fn-4.stderr index d1b704884..d1b704884 100644 --- a/src/test/ui/closures/closure-no-fn-4.stderr +++ b/tests/ui/closures/closure-no-fn-4.stderr diff --git a/src/test/ui/closures/closure-no-fn-5.rs b/tests/ui/closures/closure-no-fn-5.rs index 43e3e977e..43e3e977e 100644 --- a/src/test/ui/closures/closure-no-fn-5.rs +++ b/tests/ui/closures/closure-no-fn-5.rs diff --git a/src/test/ui/closures/closure-no-fn-5.stderr b/tests/ui/closures/closure-no-fn-5.stderr index a33b847ea..a33b847ea 100644 --- a/src/test/ui/closures/closure-no-fn-5.stderr +++ b/tests/ui/closures/closure-no-fn-5.stderr diff --git a/src/test/ui/closures/closure-referencing-itself-issue-25954.rs b/tests/ui/closures/closure-referencing-itself-issue-25954.rs index 7dd0e5179..7dd0e5179 100644 --- a/src/test/ui/closures/closure-referencing-itself-issue-25954.rs +++ b/tests/ui/closures/closure-referencing-itself-issue-25954.rs diff --git a/src/test/ui/closures/closure-referencing-itself-issue-25954.stderr b/tests/ui/closures/closure-referencing-itself-issue-25954.stderr index 8ca43cd1c..8ca43cd1c 100644 --- a/src/test/ui/closures/closure-referencing-itself-issue-25954.stderr +++ b/tests/ui/closures/closure-referencing-itself-issue-25954.stderr diff --git a/src/test/ui/closures/closure-reform-bad.rs b/tests/ui/closures/closure-reform-bad.rs index 0ba48ab51..0ba48ab51 100644 --- a/src/test/ui/closures/closure-reform-bad.rs +++ b/tests/ui/closures/closure-reform-bad.rs diff --git a/src/test/ui/closures/closure-reform-bad.stderr b/tests/ui/closures/closure-reform-bad.stderr index 4c40f70b9..4c40f70b9 100644 --- a/src/test/ui/closures/closure-reform-bad.stderr +++ b/tests/ui/closures/closure-reform-bad.stderr diff --git a/src/test/ui/closures/closure-return-type-mismatch.rs b/tests/ui/closures/closure-return-type-mismatch.rs index 1631bb303..1631bb303 100644 --- a/src/test/ui/closures/closure-return-type-mismatch.rs +++ b/tests/ui/closures/closure-return-type-mismatch.rs diff --git a/src/test/ui/closures/closure-return-type-mismatch.stderr b/tests/ui/closures/closure-return-type-mismatch.stderr index 3a89d30a0..3a89d30a0 100644 --- a/src/test/ui/closures/closure-return-type-mismatch.stderr +++ b/tests/ui/closures/closure-return-type-mismatch.stderr diff --git a/src/test/ui/closures/closure-return-type-must-be-sized.rs b/tests/ui/closures/closure-return-type-must-be-sized.rs index 8cfa02912..8cfa02912 100644 --- a/src/test/ui/closures/closure-return-type-must-be-sized.rs +++ b/tests/ui/closures/closure-return-type-must-be-sized.rs diff --git a/src/test/ui/closures/closure-return-type-must-be-sized.stderr b/tests/ui/closures/closure-return-type-must-be-sized.stderr index b07425bd8..d4fc723fa 100644 --- a/src/test/ui/closures/closure-return-type-must-be-sized.stderr +++ b/tests/ui/closures/closure-return-type-must-be-sized.stderr @@ -19,7 +19,7 @@ note: required by a bound in `a::bar` --> $DIR/closure-return-type-must-be-sized.rs:14:19 | LL | pub fn bar<F: FnOnce() -> R, R: ?Sized>() {} - | ^^^^^^^^^^^^^ required by this bound in `a::bar` + | ^^^^^^^^^^^^^ required by this bound in `bar` error[E0277]: the size for values of type `dyn A` cannot be known at compilation time --> $DIR/closure-return-type-must-be-sized.rs:56:5 @@ -51,7 +51,7 @@ note: required by a bound in `b::bar` --> $DIR/closure-return-type-must-be-sized.rs:28:19 | LL | pub fn bar<F: Fn() -> R, R: ?Sized>() {} - | ^^^^^^^^^ required by this bound in `b::bar` + | ^^^^^^^^^ required by this bound in `bar` error[E0277]: the size for values of type `dyn A` cannot be known at compilation time --> $DIR/closure-return-type-must-be-sized.rs:63:5 @@ -83,7 +83,7 @@ note: required by a bound in `c::bar` --> $DIR/closure-return-type-must-be-sized.rs:42:19 | LL | pub fn bar<F: FnMut() -> R, R: ?Sized>() {} - | ^^^^^^^^^^^^ required by this bound in `c::bar` + | ^^^^^^^^^^^^ required by this bound in `bar` error[E0277]: the size for values of type `dyn A` cannot be known at compilation time --> $DIR/closure-return-type-must-be-sized.rs:70:5 diff --git a/src/test/ui/closures/closure-wrong-kind.rs b/tests/ui/closures/closure-wrong-kind.rs index 9bf38bfb6..9bf38bfb6 100644 --- a/src/test/ui/closures/closure-wrong-kind.rs +++ b/tests/ui/closures/closure-wrong-kind.rs diff --git a/src/test/ui/closures/closure-wrong-kind.stderr b/tests/ui/closures/closure-wrong-kind.stderr index 9ea55d764..9ea55d764 100644 --- a/src/test/ui/closures/closure-wrong-kind.stderr +++ b/tests/ui/closures/closure-wrong-kind.stderr diff --git a/src/test/ui/closures/closure_cap_coerce_many_fail.rs b/tests/ui/closures/closure_cap_coerce_many_fail.rs index 9133a2921..9133a2921 100644 --- a/src/test/ui/closures/closure_cap_coerce_many_fail.rs +++ b/tests/ui/closures/closure_cap_coerce_many_fail.rs diff --git a/src/test/ui/closures/closure_cap_coerce_many_fail.stderr b/tests/ui/closures/closure_cap_coerce_many_fail.stderr index ca8a43328..ca8a43328 100644 --- a/src/test/ui/closures/closure_cap_coerce_many_fail.stderr +++ b/tests/ui/closures/closure_cap_coerce_many_fail.stderr diff --git a/src/test/ui/closures/closure_no_cap_coerce_many_check_pass.rs b/tests/ui/closures/closure_no_cap_coerce_many_check_pass.rs index ce461810e..ce461810e 100644 --- a/src/test/ui/closures/closure_no_cap_coerce_many_check_pass.rs +++ b/tests/ui/closures/closure_no_cap_coerce_many_check_pass.rs diff --git a/src/test/ui/closures/closure_no_cap_coerce_many_run_pass.rs b/tests/ui/closures/closure_no_cap_coerce_many_run_pass.rs index 3c5fe8a55..3c5fe8a55 100644 --- a/src/test/ui/closures/closure_no_cap_coerce_many_run_pass.rs +++ b/tests/ui/closures/closure_no_cap_coerce_many_run_pass.rs diff --git a/src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.mir.stderr b/tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.mir.stderr index 2f9c7973b..2f9c7973b 100644 --- a/src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.mir.stderr +++ b/tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.mir.stderr diff --git a/src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.rs b/tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.rs index bdb3eb23c..bdb3eb23c 100644 --- a/src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.rs +++ b/tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.rs diff --git a/src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.thir.stderr b/tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.thir.stderr index 2f9c7973b..2f9c7973b 100644 --- a/src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.thir.stderr +++ b/tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.thir.stderr diff --git a/src/test/ui/closures/closure_no_cap_coerce_many_unsafe_1.rs b/tests/ui/closures/closure_no_cap_coerce_many_unsafe_1.rs index a6d6125a1..a6d6125a1 100644 --- a/src/test/ui/closures/closure_no_cap_coerce_many_unsafe_1.rs +++ b/tests/ui/closures/closure_no_cap_coerce_many_unsafe_1.rs diff --git a/src/test/ui/closures/closure_promotion.rs b/tests/ui/closures/closure_promotion.rs index 47a8fc090..47a8fc090 100644 --- a/src/test/ui/closures/closure_promotion.rs +++ b/tests/ui/closures/closure_promotion.rs diff --git a/src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.mir.stderr b/tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.mir.stderr index a60100dda..a60100dda 100644 --- a/src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.mir.stderr +++ b/tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.mir.stderr diff --git a/src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.rs b/tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.rs index 57358fbdd..57358fbdd 100644 --- a/src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.rs +++ b/tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.rs diff --git a/src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.thir.stderr b/tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.thir.stderr index 8c516e890..8c516e890 100644 --- a/src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.thir.stderr +++ b/tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.thir.stderr diff --git a/src/test/ui/closures/coerce-unsafe-to-closure.rs b/tests/ui/closures/coerce-unsafe-to-closure.rs index 78bdd36f9..78bdd36f9 100644 --- a/src/test/ui/closures/coerce-unsafe-to-closure.rs +++ b/tests/ui/closures/coerce-unsafe-to-closure.rs diff --git a/src/test/ui/closures/coerce-unsafe-to-closure.stderr b/tests/ui/closures/coerce-unsafe-to-closure.stderr index 6ce63e829..449cd0b31 100644 --- a/src/test/ui/closures/coerce-unsafe-to-closure.stderr +++ b/tests/ui/closures/coerce-unsafe-to-closure.stderr @@ -10,9 +10,6 @@ LL | let x: Option<&[u8]> = Some("foo").map(std::mem::transmute); = note: unsafe function cannot be called generically without an unsafe block note: required by a bound in `Option::<T>::map` --> $SRC_DIR/core/src/option.rs:LL:COL - | -LL | F: ~const FnOnce(T) -> U, - | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` error: aborting due to previous error diff --git a/src/test/ui/closures/deeply-nested_closures.rs b/tests/ui/closures/deeply-nested_closures.rs index a02684ee1..a02684ee1 100644 --- a/src/test/ui/closures/deeply-nested_closures.rs +++ b/tests/ui/closures/deeply-nested_closures.rs diff --git a/src/test/ui/closures/diverging-closure.rs b/tests/ui/closures/diverging-closure.rs index 1213a883e..1213a883e 100644 --- a/src/test/ui/closures/diverging-closure.rs +++ b/tests/ui/closures/diverging-closure.rs diff --git a/src/test/ui/closures/issue-101696.rs b/tests/ui/closures/issue-101696.rs index 0a358bd16..0a358bd16 100644 --- a/src/test/ui/closures/issue-101696.rs +++ b/tests/ui/closures/issue-101696.rs diff --git a/src/test/ui/closures/issue-102089-multiple-opaque-cast.rs b/tests/ui/closures/issue-102089-multiple-opaque-cast.rs index 043bf06a1..043bf06a1 100644 --- a/src/test/ui/closures/issue-102089-multiple-opaque-cast.rs +++ b/tests/ui/closures/issue-102089-multiple-opaque-cast.rs diff --git a/src/test/ui/closures/issue-10398.rs b/tests/ui/closures/issue-10398.rs index f76d09cd0..f76d09cd0 100644 --- a/src/test/ui/closures/issue-10398.rs +++ b/tests/ui/closures/issue-10398.rs diff --git a/src/test/ui/closures/issue-10398.stderr b/tests/ui/closures/issue-10398.stderr index 423b79daf..423b79daf 100644 --- a/src/test/ui/closures/issue-10398.stderr +++ b/tests/ui/closures/issue-10398.stderr diff --git a/src/test/ui/closures/issue-23012-supertrait-signature-inference.rs b/tests/ui/closures/issue-23012-supertrait-signature-inference.rs index 5899b703e..5899b703e 100644 --- a/src/test/ui/closures/issue-23012-supertrait-signature-inference.rs +++ b/tests/ui/closures/issue-23012-supertrait-signature-inference.rs diff --git a/src/test/ui/closures/issue-41366.rs b/tests/ui/closures/issue-41366.rs index acc1c6ae1..acc1c6ae1 100644 --- a/src/test/ui/closures/issue-41366.rs +++ b/tests/ui/closures/issue-41366.rs diff --git a/src/test/ui/closures/issue-42463.rs b/tests/ui/closures/issue-42463.rs index 51d6ea3f7..51d6ea3f7 100644 --- a/src/test/ui/closures/issue-42463.rs +++ b/tests/ui/closures/issue-42463.rs diff --git a/src/test/ui/closures/issue-46742.rs b/tests/ui/closures/issue-46742.rs index cd8dc4869..cd8dc4869 100644 --- a/src/test/ui/closures/issue-46742.rs +++ b/tests/ui/closures/issue-46742.rs diff --git a/src/test/ui/closures/issue-48109.rs b/tests/ui/closures/issue-48109.rs index ce1f2a036..ce1f2a036 100644 --- a/src/test/ui/closures/issue-48109.rs +++ b/tests/ui/closures/issue-48109.rs diff --git a/src/test/ui/closures/issue-52437.rs b/tests/ui/closures/issue-52437.rs index 6ac5380a5..6ac5380a5 100644 --- a/src/test/ui/closures/issue-52437.rs +++ b/tests/ui/closures/issue-52437.rs diff --git a/src/test/ui/closures/issue-52437.stderr b/tests/ui/closures/issue-52437.stderr index 4c24a54bb..9ba24c7a8 100644 --- a/src/test/ui/closures/issue-52437.stderr +++ b/tests/ui/closures/issue-52437.stderr @@ -12,8 +12,8 @@ LL | [(); &(&'static: loop { |x| {}; }) as *const _ as usize] | help: consider giving this closure parameter an explicit type | -LL | [(); &(&'static: loop { |x: _| {}; }) as *const _ as usize] - | +++ +LL | [(); &(&'static: loop { |x: /* Type */| {}; }) as *const _ as usize] + | ++++++++++++ error: aborting due to 2 previous errors diff --git a/src/test/ui/closures/issue-67123.rs b/tests/ui/closures/issue-67123.rs index 014c530e6..014c530e6 100644 --- a/src/test/ui/closures/issue-67123.rs +++ b/tests/ui/closures/issue-67123.rs diff --git a/src/test/ui/closures/issue-67123.stderr b/tests/ui/closures/issue-67123.stderr index 7877c7334..7877c7334 100644 --- a/src/test/ui/closures/issue-67123.stderr +++ b/tests/ui/closures/issue-67123.stderr diff --git a/src/test/ui/closures/issue-6801.rs b/tests/ui/closures/issue-6801.rs index cecb08f00..cecb08f00 100644 --- a/src/test/ui/closures/issue-6801.rs +++ b/tests/ui/closures/issue-6801.rs diff --git a/src/test/ui/closures/issue-6801.stderr b/tests/ui/closures/issue-6801.stderr index 6a40db0d5..6a40db0d5 100644 --- a/src/test/ui/closures/issue-6801.stderr +++ b/tests/ui/closures/issue-6801.stderr diff --git a/src/test/ui/closures/issue-68025.rs b/tests/ui/closures/issue-68025.rs index 261bfd60a..261bfd60a 100644 --- a/src/test/ui/closures/issue-68025.rs +++ b/tests/ui/closures/issue-68025.rs diff --git a/src/test/ui/closures/issue-72408-nested-closures-exponential.rs b/tests/ui/closures/issue-72408-nested-closures-exponential.rs index 2d6ba9365..2d6ba9365 100644 --- a/src/test/ui/closures/issue-72408-nested-closures-exponential.rs +++ b/tests/ui/closures/issue-72408-nested-closures-exponential.rs diff --git a/src/test/ui/closures/issue-78720.rs b/tests/ui/closures/issue-78720.rs index 4cdb9f491..4cdb9f491 100644 --- a/src/test/ui/closures/issue-78720.rs +++ b/tests/ui/closures/issue-78720.rs diff --git a/src/test/ui/closures/issue-78720.stderr b/tests/ui/closures/issue-78720.stderr index da3f539a0..1e860d32b 100644 --- a/src/test/ui/closures/issue-78720.stderr +++ b/tests/ui/closures/issue-78720.stderr @@ -9,11 +9,9 @@ error[E0412]: cannot find type `F` in this scope | LL | _func: F, | ^ + --> $SRC_DIR/core/src/ops/function.rs:LL:COL | - ::: $SRC_DIR/core/src/ops/function.rs:LL:COL - | -LL | pub trait Fn<Args: Tuple>: FnMut<Args> { - | -------------------------------------- similarly named trait `Fn` defined here + = note: similarly named trait `Fn` defined here | help: a trait with a similar name exists | diff --git a/src/test/ui/closures/issue-80313-mutable-borrow-in-closure.rs b/tests/ui/closures/issue-80313-mutable-borrow-in-closure.rs index ff210ae06..ff210ae06 100644 --- a/src/test/ui/closures/issue-80313-mutable-borrow-in-closure.rs +++ b/tests/ui/closures/issue-80313-mutable-borrow-in-closure.rs diff --git a/src/test/ui/closures/issue-80313-mutable-borrow-in-closure.stderr b/tests/ui/closures/issue-80313-mutable-borrow-in-closure.stderr index bf9e1febd..239f071ca 100644 --- a/src/test/ui/closures/issue-80313-mutable-borrow-in-closure.stderr +++ b/tests/ui/closures/issue-80313-mutable-borrow-in-closure.stderr @@ -1,13 +1,16 @@ error[E0596]: cannot borrow `callback` as mutable, as it is not declared as mutable --> $DIR/issue-80313-mutable-borrow-in-closure.rs:6:5 | -LL | let callback = || { - | -------- help: consider changing this to be mutable: `mut callback` LL | &mut my_var; | ------ calling `callback` requires mutable binding due to mutable borrow of `my_var` LL | }; LL | callback(); | ^^^^^^^^ cannot borrow as mutable + | +help: consider changing this to be mutable + | +LL | let mut callback = || { + | +++ error: aborting due to previous error diff --git a/src/test/ui/closures/issue-80313-mutable-borrow-in-move-closure.rs b/tests/ui/closures/issue-80313-mutable-borrow-in-move-closure.rs index 8f2d8a676..8f2d8a676 100644 --- a/src/test/ui/closures/issue-80313-mutable-borrow-in-move-closure.rs +++ b/tests/ui/closures/issue-80313-mutable-borrow-in-move-closure.rs diff --git a/src/test/ui/closures/issue-80313-mutable-borrow-in-move-closure.stderr b/tests/ui/closures/issue-80313-mutable-borrow-in-move-closure.stderr index b67cec6a6..1ec279f03 100644 --- a/src/test/ui/closures/issue-80313-mutable-borrow-in-move-closure.stderr +++ b/tests/ui/closures/issue-80313-mutable-borrow-in-move-closure.stderr @@ -1,13 +1,16 @@ error[E0596]: cannot borrow `callback` as mutable, as it is not declared as mutable --> $DIR/issue-80313-mutable-borrow-in-move-closure.rs:6:5 | -LL | let callback = move || { - | -------- help: consider changing this to be mutable: `mut callback` LL | &mut my_var; | ------ calling `callback` requires mutable binding due to possible mutation of `my_var` LL | }; LL | callback(); | ^^^^^^^^ cannot borrow as mutable + | +help: consider changing this to be mutable + | +LL | let mut callback = move || { + | +++ error: aborting due to previous error diff --git a/src/test/ui/closures/issue-80313-mutation-in-closure.rs b/tests/ui/closures/issue-80313-mutation-in-closure.rs index e082ea562..e082ea562 100644 --- a/src/test/ui/closures/issue-80313-mutation-in-closure.rs +++ b/tests/ui/closures/issue-80313-mutation-in-closure.rs diff --git a/src/test/ui/closures/issue-80313-mutation-in-closure.stderr b/tests/ui/closures/issue-80313-mutation-in-closure.stderr index 6e98549f6..22a62ce73 100644 --- a/src/test/ui/closures/issue-80313-mutation-in-closure.stderr +++ b/tests/ui/closures/issue-80313-mutation-in-closure.stderr @@ -1,13 +1,16 @@ error[E0596]: cannot borrow `callback` as mutable, as it is not declared as mutable --> $DIR/issue-80313-mutation-in-closure.rs:6:5 | -LL | let callback = || { - | -------- help: consider changing this to be mutable: `mut callback` LL | my_var = true; | ------ calling `callback` requires mutable binding due to mutable borrow of `my_var` LL | }; LL | callback(); | ^^^^^^^^ cannot borrow as mutable + | +help: consider changing this to be mutable + | +LL | let mut callback = || { + | +++ error: aborting due to previous error diff --git a/src/test/ui/closures/issue-80313-mutation-in-move-closure.rs b/tests/ui/closures/issue-80313-mutation-in-move-closure.rs index f66bf4e06..f66bf4e06 100644 --- a/src/test/ui/closures/issue-80313-mutation-in-move-closure.rs +++ b/tests/ui/closures/issue-80313-mutation-in-move-closure.rs diff --git a/src/test/ui/closures/issue-80313-mutation-in-move-closure.stderr b/tests/ui/closures/issue-80313-mutation-in-move-closure.stderr index edd55422a..a2222f8cc 100644 --- a/src/test/ui/closures/issue-80313-mutation-in-move-closure.stderr +++ b/tests/ui/closures/issue-80313-mutation-in-move-closure.stderr @@ -1,13 +1,16 @@ error[E0596]: cannot borrow `callback` as mutable, as it is not declared as mutable --> $DIR/issue-80313-mutation-in-move-closure.rs:6:5 | -LL | let callback = move || { - | -------- help: consider changing this to be mutable: `mut callback` LL | my_var = true; | ------ calling `callback` requires mutable binding due to possible mutation of `my_var` LL | }; LL | callback(); | ^^^^^^^^ cannot borrow as mutable + | +help: consider changing this to be mutable + | +LL | let mut callback = move || { + | +++ error: aborting due to previous error diff --git a/src/test/ui/closures/issue-81700-mut-borrow.rs b/tests/ui/closures/issue-81700-mut-borrow.rs index a27a61601..a27a61601 100644 --- a/src/test/ui/closures/issue-81700-mut-borrow.rs +++ b/tests/ui/closures/issue-81700-mut-borrow.rs diff --git a/tests/ui/closures/issue-81700-mut-borrow.stderr b/tests/ui/closures/issue-81700-mut-borrow.stderr new file mode 100644 index 000000000..03b18c3f7 --- /dev/null +++ b/tests/ui/closures/issue-81700-mut-borrow.stderr @@ -0,0 +1,16 @@ +error[E0596]: cannot borrow `bar` as mutable, as it is not declared as mutable + --> $DIR/issue-81700-mut-borrow.rs:3:5 + | +LL | let bar = || { foo(x); }; + | - calling `bar` requires mutable binding due to mutable borrow of `x` +LL | bar(); + | ^^^ cannot borrow as mutable + | +help: consider changing this to be mutable + | +LL | let mut bar = || { foo(x); }; + | +++ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0596`. diff --git a/src/test/ui/closures/issue-82438-mut-without-upvar.rs b/tests/ui/closures/issue-82438-mut-without-upvar.rs index 5d88e1e77..5d88e1e77 100644 --- a/src/test/ui/closures/issue-82438-mut-without-upvar.rs +++ b/tests/ui/closures/issue-82438-mut-without-upvar.rs diff --git a/src/test/ui/closures/issue-82438-mut-without-upvar.stderr b/tests/ui/closures/issue-82438-mut-without-upvar.stderr index 802284b26..f0951b7d1 100644 --- a/src/test/ui/closures/issue-82438-mut-without-upvar.stderr +++ b/tests/ui/closures/issue-82438-mut-without-upvar.stderr @@ -1,11 +1,13 @@ error[E0596]: cannot borrow `c` as mutable, as it is not declared as mutable --> $DIR/issue-82438-mut-without-upvar.rs:27:27 | -LL | let c = |a, b, c, d| {}; - | - help: consider changing this to be mutable: `mut c` -LL | LL | A.f(participant_name, &mut c); | ^^^^^^ cannot borrow as mutable + | +help: consider changing this to be mutable + | +LL | let mut c = |a, b, c, d| {}; + | +++ error: aborting due to previous error diff --git a/src/test/ui/closures/issue-84044-drop-non-mut.rs b/tests/ui/closures/issue-84044-drop-non-mut.rs index aed7750f1..aed7750f1 100644 --- a/src/test/ui/closures/issue-84044-drop-non-mut.rs +++ b/tests/ui/closures/issue-84044-drop-non-mut.rs diff --git a/src/test/ui/closures/issue-84044-drop-non-mut.stderr b/tests/ui/closures/issue-84044-drop-non-mut.stderr index c0bfad263..5335a056c 100644 --- a/src/test/ui/closures/issue-84044-drop-non-mut.stderr +++ b/tests/ui/closures/issue-84044-drop-non-mut.stderr @@ -1,10 +1,13 @@ error[E0596]: cannot borrow `f` as mutable, as it is not declared as mutable --> $DIR/issue-84044-drop-non-mut.rs:5:10 | -LL | let f = || {}; - | - help: consider changing this to be mutable: `mut f` LL | drop(&mut f); | ^^^^^^ cannot borrow as mutable + | +help: consider changing this to be mutable + | +LL | let mut f = || {}; + | +++ error: aborting due to previous error diff --git a/src/test/ui/closures/issue-84128.rs b/tests/ui/closures/issue-84128.rs index 30733871b..30733871b 100644 --- a/src/test/ui/closures/issue-84128.rs +++ b/tests/ui/closures/issue-84128.rs diff --git a/tests/ui/closures/issue-84128.stderr b/tests/ui/closures/issue-84128.stderr new file mode 100644 index 000000000..1cd8949b8 --- /dev/null +++ b/tests/ui/closures/issue-84128.stderr @@ -0,0 +1,24 @@ +error[E0308]: mismatched types + --> $DIR/issue-84128.rs:13:13 + | +LL | Foo(()) + | --- ^^ expected integer, found `()` + | | + | arguments to this struct are incorrect + | +help: the type constructed contains `()` due to the type of the argument passed + --> $DIR/issue-84128.rs:13:9 + | +LL | Foo(()) + | ^^^^--^ + | | + | this argument influences the type of `Foo` +note: tuple struct defined here + --> $DIR/issue-84128.rs:5:8 + | +LL | struct Foo<T>(T); + | ^^^ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0308`. diff --git a/src/test/ui/closures/issue-87461.rs b/tests/ui/closures/issue-87461.rs index 0151080ee..0151080ee 100644 --- a/src/test/ui/closures/issue-87461.rs +++ b/tests/ui/closures/issue-87461.rs diff --git a/tests/ui/closures/issue-87461.stderr b/tests/ui/closures/issue-87461.stderr new file mode 100644 index 000000000..b492251c0 --- /dev/null +++ b/tests/ui/closures/issue-87461.stderr @@ -0,0 +1,57 @@ +error[E0308]: mismatched types + --> $DIR/issue-87461.rs:10:8 + | +LL | Ok(()) + | -- ^^ expected `u16`, found `()` + | | + | arguments to this enum variant are incorrect + | +help: the type constructed contains `()` due to the type of the argument passed + --> $DIR/issue-87461.rs:10:5 + | +LL | Ok(()) + | ^^^--^ + | | + | this argument influences the type of `Ok` +note: tuple variant defined here + --> $SRC_DIR/core/src/result.rs:LL:COL + +error[E0308]: mismatched types + --> $DIR/issue-87461.rs:17:8 + | +LL | Ok(()) + | -- ^^ expected `u16`, found `()` + | | + | arguments to this enum variant are incorrect + | +help: the type constructed contains `()` due to the type of the argument passed + --> $DIR/issue-87461.rs:17:5 + | +LL | Ok(()) + | ^^^--^ + | | + | this argument influences the type of `Ok` +note: tuple variant defined here + --> $SRC_DIR/core/src/result.rs:LL:COL + +error[E0308]: mismatched types + --> $DIR/issue-87461.rs:26:12 + | +LL | Ok(()) + | -- ^^ expected `u16`, found `()` + | | + | arguments to this enum variant are incorrect + | +help: the type constructed contains `()` due to the type of the argument passed + --> $DIR/issue-87461.rs:26:9 + | +LL | Ok(()) + | ^^^--^ + | | + | this argument influences the type of `Ok` +note: tuple variant defined here + --> $SRC_DIR/core/src/result.rs:LL:COL + +error: aborting due to 3 previous errors + +For more information about this error, try `rustc --explain E0308`. diff --git a/src/test/ui/closures/issue-87814-1.rs b/tests/ui/closures/issue-87814-1.rs index 5cf01ddf5..5cf01ddf5 100644 --- a/src/test/ui/closures/issue-87814-1.rs +++ b/tests/ui/closures/issue-87814-1.rs diff --git a/src/test/ui/closures/issue-87814-2.rs b/tests/ui/closures/issue-87814-2.rs index efe77f90f..efe77f90f 100644 --- a/src/test/ui/closures/issue-87814-2.rs +++ b/tests/ui/closures/issue-87814-2.rs diff --git a/src/test/ui/closures/issue-90871.rs b/tests/ui/closures/issue-90871.rs index 7ce061cd3..7ce061cd3 100644 --- a/src/test/ui/closures/issue-90871.rs +++ b/tests/ui/closures/issue-90871.rs diff --git a/src/test/ui/closures/issue-90871.stderr b/tests/ui/closures/issue-90871.stderr index a482750fb..4a578b4d7 100644 --- a/src/test/ui/closures/issue-90871.stderr +++ b/tests/ui/closures/issue-90871.stderr @@ -3,11 +3,9 @@ error[E0412]: cannot find type `n` in this scope | LL | type_ascribe!(2, n([u8; || 1])) | ^ help: a trait with a similar name exists: `Fn` + --> $SRC_DIR/core/src/ops/function.rs:LL:COL | - ::: $SRC_DIR/core/src/ops/function.rs:LL:COL - | -LL | pub trait Fn<Args: Tuple>: FnMut<Args> { - | -------------------------------------- similarly named trait `Fn` defined here + = note: similarly named trait `Fn` defined here error[E0308]: mismatched types --> $DIR/issue-90871.rs:4:29 diff --git a/src/test/ui/closures/issue-97607.rs b/tests/ui/closures/issue-97607.rs index 74c910ad0..74c910ad0 100644 --- a/src/test/ui/closures/issue-97607.rs +++ b/tests/ui/closures/issue-97607.rs diff --git a/src/test/ui/closures/issue-99565.rs b/tests/ui/closures/issue-99565.rs index 3a30d2ee0..3a30d2ee0 100644 --- a/src/test/ui/closures/issue-99565.rs +++ b/tests/ui/closures/issue-99565.rs diff --git a/src/test/ui/closures/issue-99565.stderr b/tests/ui/closures/issue-99565.stderr index 0d940aa9a..0d940aa9a 100644 --- a/src/test/ui/closures/issue-99565.stderr +++ b/tests/ui/closures/issue-99565.stderr diff --git a/src/test/ui/closures/local-type-mix.rs b/tests/ui/closures/local-type-mix.rs index 006e6f490..006e6f490 100644 --- a/src/test/ui/closures/local-type-mix.rs +++ b/tests/ui/closures/local-type-mix.rs diff --git a/src/test/ui/closures/local-type-mix.stderr b/tests/ui/closures/local-type-mix.stderr index 68c320a06..68c320a06 100644 --- a/src/test/ui/closures/local-type-mix.stderr +++ b/tests/ui/closures/local-type-mix.stderr diff --git a/src/test/ui/closures/multiple-fn-bounds.rs b/tests/ui/closures/multiple-fn-bounds.rs index 6bb4098e2..6bb4098e2 100644 --- a/src/test/ui/closures/multiple-fn-bounds.rs +++ b/tests/ui/closures/multiple-fn-bounds.rs diff --git a/src/test/ui/closures/multiple-fn-bounds.stderr b/tests/ui/closures/multiple-fn-bounds.stderr index eefc123fe..32a1edb00 100644 --- a/src/test/ui/closures/multiple-fn-bounds.stderr +++ b/tests/ui/closures/multiple-fn-bounds.stderr @@ -18,6 +18,10 @@ note: required by a bound in `foo` | LL | fn foo<F: Fn(&char) -> bool + Fn(char) -> bool>(f: F) { | ^^^^^^^^^^^^^^^^ required by this bound in `foo` +help: do not borrow the argument + | +LL | foo(move |char| v); + | ~~~~ error: aborting due to previous error diff --git a/src/test/ui/closures/old-closure-arg-call-as.rs b/tests/ui/closures/old-closure-arg-call-as.rs index 87cf3a487..87cf3a487 100644 --- a/src/test/ui/closures/old-closure-arg-call-as.rs +++ b/tests/ui/closures/old-closure-arg-call-as.rs diff --git a/src/test/ui/closures/old-closure-arg.rs b/tests/ui/closures/old-closure-arg.rs index bd1385e5c..bd1385e5c 100644 --- a/src/test/ui/closures/old-closure-arg.rs +++ b/tests/ui/closures/old-closure-arg.rs diff --git a/src/test/ui/closures/old-closure-explicit-types.rs b/tests/ui/closures/old-closure-explicit-types.rs index 860fcc8df..860fcc8df 100644 --- a/src/test/ui/closures/old-closure-explicit-types.rs +++ b/tests/ui/closures/old-closure-explicit-types.rs diff --git a/src/test/ui/closures/old-closure-expr-precedence.rs b/tests/ui/closures/old-closure-expr-precedence.rs index 13b2fe9c3..13b2fe9c3 100644 --- a/src/test/ui/closures/old-closure-expr-precedence.rs +++ b/tests/ui/closures/old-closure-expr-precedence.rs diff --git a/src/test/ui/closures/old-closure-expr-precedence.stderr b/tests/ui/closures/old-closure-expr-precedence.stderr index fabece1ad..fabece1ad 100644 --- a/src/test/ui/closures/old-closure-expr-precedence.stderr +++ b/tests/ui/closures/old-closure-expr-precedence.stderr diff --git a/src/test/ui/closures/old-closure-expression-remove-semicolon.fixed b/tests/ui/closures/old-closure-expression-remove-semicolon.fixed index 8aa9e952b..8aa9e952b 100644 --- a/src/test/ui/closures/old-closure-expression-remove-semicolon.fixed +++ b/tests/ui/closures/old-closure-expression-remove-semicolon.fixed diff --git a/src/test/ui/closures/old-closure-expression-remove-semicolon.rs b/tests/ui/closures/old-closure-expression-remove-semicolon.rs index 912c7a331..912c7a331 100644 --- a/src/test/ui/closures/old-closure-expression-remove-semicolon.rs +++ b/tests/ui/closures/old-closure-expression-remove-semicolon.rs diff --git a/src/test/ui/closures/old-closure-expression-remove-semicolon.stderr b/tests/ui/closures/old-closure-expression-remove-semicolon.stderr index bc54ab4d5..bc54ab4d5 100644 --- a/src/test/ui/closures/old-closure-expression-remove-semicolon.stderr +++ b/tests/ui/closures/old-closure-expression-remove-semicolon.stderr diff --git a/src/test/ui/closures/old-closure-fn-coerce.rs b/tests/ui/closures/old-closure-fn-coerce.rs index d993ad994..d993ad994 100644 --- a/src/test/ui/closures/old-closure-fn-coerce.rs +++ b/tests/ui/closures/old-closure-fn-coerce.rs diff --git a/src/test/ui/closures/old-closure-iter-1.rs b/tests/ui/closures/old-closure-iter-1.rs index caf0266cf..caf0266cf 100644 --- a/src/test/ui/closures/old-closure-iter-1.rs +++ b/tests/ui/closures/old-closure-iter-1.rs diff --git a/src/test/ui/closures/old-closure-iter-2.rs b/tests/ui/closures/old-closure-iter-2.rs index e90c1ee81..e90c1ee81 100644 --- a/src/test/ui/closures/old-closure-iter-2.rs +++ b/tests/ui/closures/old-closure-iter-2.rs diff --git a/src/test/ui/closures/once-move-out-on-heap.rs b/tests/ui/closures/once-move-out-on-heap.rs index 4e2e400ce..4e2e400ce 100644 --- a/src/test/ui/closures/once-move-out-on-heap.rs +++ b/tests/ui/closures/once-move-out-on-heap.rs diff --git a/src/test/ui/closures/print/closure-print-generic-1.rs b/tests/ui/closures/print/closure-print-generic-1.rs index 504b4adbe..504b4adbe 100644 --- a/src/test/ui/closures/print/closure-print-generic-1.rs +++ b/tests/ui/closures/print/closure-print-generic-1.rs diff --git a/src/test/ui/closures/print/closure-print-generic-1.stderr b/tests/ui/closures/print/closure-print-generic-1.stderr index b21734f02..b21734f02 100644 --- a/src/test/ui/closures/print/closure-print-generic-1.stderr +++ b/tests/ui/closures/print/closure-print-generic-1.stderr diff --git a/src/test/ui/closures/print/closure-print-generic-2.rs b/tests/ui/closures/print/closure-print-generic-2.rs index 3f77fd26b..3f77fd26b 100644 --- a/src/test/ui/closures/print/closure-print-generic-2.rs +++ b/tests/ui/closures/print/closure-print-generic-2.rs diff --git a/src/test/ui/closures/print/closure-print-generic-2.stderr b/tests/ui/closures/print/closure-print-generic-2.stderr index e53277a93..e53277a93 100644 --- a/src/test/ui/closures/print/closure-print-generic-2.stderr +++ b/tests/ui/closures/print/closure-print-generic-2.stderr diff --git a/src/test/ui/closures/print/closure-print-generic-trim-off-verbose-2.rs b/tests/ui/closures/print/closure-print-generic-trim-off-verbose-2.rs index 07bf8fe4c..07bf8fe4c 100644 --- a/src/test/ui/closures/print/closure-print-generic-trim-off-verbose-2.rs +++ b/tests/ui/closures/print/closure-print-generic-trim-off-verbose-2.rs diff --git a/src/test/ui/closures/print/closure-print-generic-trim-off-verbose-2.stderr b/tests/ui/closures/print/closure-print-generic-trim-off-verbose-2.stderr index ff89dd340..ff89dd340 100644 --- a/src/test/ui/closures/print/closure-print-generic-trim-off-verbose-2.stderr +++ b/tests/ui/closures/print/closure-print-generic-trim-off-verbose-2.stderr diff --git a/src/test/ui/closures/print/closure-print-generic-verbose-1.rs b/tests/ui/closures/print/closure-print-generic-verbose-1.rs index 67d37f1c5..67d37f1c5 100644 --- a/src/test/ui/closures/print/closure-print-generic-verbose-1.rs +++ b/tests/ui/closures/print/closure-print-generic-verbose-1.rs diff --git a/src/test/ui/closures/print/closure-print-generic-verbose-1.stderr b/tests/ui/closures/print/closure-print-generic-verbose-1.stderr index 3ab7c66d1..3ab7c66d1 100644 --- a/src/test/ui/closures/print/closure-print-generic-verbose-1.stderr +++ b/tests/ui/closures/print/closure-print-generic-verbose-1.stderr diff --git a/src/test/ui/closures/print/closure-print-generic-verbose-2.rs b/tests/ui/closures/print/closure-print-generic-verbose-2.rs index f460fedff..f460fedff 100644 --- a/src/test/ui/closures/print/closure-print-generic-verbose-2.rs +++ b/tests/ui/closures/print/closure-print-generic-verbose-2.rs diff --git a/src/test/ui/closures/print/closure-print-generic-verbose-2.stderr b/tests/ui/closures/print/closure-print-generic-verbose-2.stderr index 5bbf84f96..5bbf84f96 100644 --- a/src/test/ui/closures/print/closure-print-generic-verbose-2.stderr +++ b/tests/ui/closures/print/closure-print-generic-verbose-2.stderr diff --git a/src/test/ui/closures/print/closure-print-verbose.rs b/tests/ui/closures/print/closure-print-verbose.rs index 4b0438a91..4b0438a91 100644 --- a/src/test/ui/closures/print/closure-print-verbose.rs +++ b/tests/ui/closures/print/closure-print-verbose.rs diff --git a/src/test/ui/closures/print/closure-print-verbose.stderr b/tests/ui/closures/print/closure-print-verbose.stderr index 083717b33..083717b33 100644 --- a/src/test/ui/closures/print/closure-print-verbose.stderr +++ b/tests/ui/closures/print/closure-print-verbose.stderr diff --git a/src/test/ui/closures/semistatement-in-lambda.rs b/tests/ui/closures/semistatement-in-lambda.rs index ebd55e0ba..ebd55e0ba 100644 --- a/src/test/ui/closures/semistatement-in-lambda.rs +++ b/tests/ui/closures/semistatement-in-lambda.rs diff --git a/tests/ui/closures/supertrait-hint-cycle-2.rs b/tests/ui/closures/supertrait-hint-cycle-2.rs new file mode 100644 index 000000000..fda81b18d --- /dev/null +++ b/tests/ui/closures/supertrait-hint-cycle-2.rs @@ -0,0 +1,18 @@ +// check-pass + +trait Foo<'a> { + type Input; +} + +impl<F: Fn(u32)> Foo<'_> for F { + type Input = u32; +} + +trait SuperFn: for<'a> Foo<'a> + for<'a> Fn(<Self as Foo<'a>>::Input) {} +impl<T> SuperFn for T where T: for<'a> Fn(<Self as Foo<'a>>::Input) + for<'a> Foo<'a> {} + +fn needs_super(_: impl SuperFn) {} + +fn main() { + needs_super(|_: u32| {}); +} diff --git a/tests/ui/closures/supertrait-hint-cycle-3.rs b/tests/ui/closures/supertrait-hint-cycle-3.rs new file mode 100644 index 000000000..8149474df --- /dev/null +++ b/tests/ui/closures/supertrait-hint-cycle-3.rs @@ -0,0 +1,16 @@ +// check-pass + + +trait Foo<'a> { + type Input; +} + +impl<F: Fn(u32)> Foo<'_> for F { + type Input = u32; +} + +fn needs_super<F: for<'a> Fn(<F as Foo<'a>>::Input) + for<'a> Foo<'a>>(_: F) {} + +fn main() { + needs_super(|_: u32| {}); +} diff --git a/tests/ui/closures/supertrait-hint-cycle.rs b/tests/ui/closures/supertrait-hint-cycle.rs new file mode 100644 index 000000000..dbb06b2ef --- /dev/null +++ b/tests/ui/closures/supertrait-hint-cycle.rs @@ -0,0 +1,65 @@ +// edition:2021 +// check-pass + +#![feature(type_alias_impl_trait)] +#![feature(closure_lifetime_binder)] + +use std::future::Future; + +trait AsyncFn<I, R>: FnMut(I) -> Self::Fut { + type Fut: Future<Output = R>; +} + +impl<F, I, R, Fut> AsyncFn<I, R> for F +where + Fut: Future<Output = R>, + F: FnMut(I) -> Fut, +{ + type Fut = Fut; +} + +async fn call<C, R, F>(mut ctx: C, mut f: F) -> Result<R, ()> +where + F: for<'a> AsyncFn<&'a mut C, Result<R, ()>>, +{ + loop { + match f(&mut ctx).await { + Ok(val) => return Ok(val), + Err(_) => continue, + } + } +} + +trait Cap<'a> {} +impl<T> Cap<'_> for T {} + +fn works(ctx: &mut usize) { + let mut inner = 0; + + type Ret<'a, 'b: 'a> = impl Future<Output = Result<usize, ()>> + 'a + Cap<'b>; + + let callback = for<'a, 'b> |c: &'a mut &'b mut usize| -> Ret<'a, 'b> { + inner += 1; + async move { + let _c = c; + Ok(1usize) + } + }; + call(ctx, callback); +} + +fn doesnt_work_but_should(ctx: &mut usize) { + let mut inner = 0; + + type Ret<'a, 'b: 'a> = impl Future<Output = Result<usize, ()>> + 'a + Cap<'b>; + + call(ctx, for<'a, 'b> |c: &'a mut &'b mut usize| -> Ret<'a, 'b> { + inner += 1; + async move { + let _c = c; + Ok(1usize) + } + }); +} + +fn main() {} diff --git a/src/test/ui/closures/supertrait-hint-references-assoc-ty.rs b/tests/ui/closures/supertrait-hint-references-assoc-ty.rs index 270bf14c3..270bf14c3 100644 --- a/src/test/ui/closures/supertrait-hint-references-assoc-ty.rs +++ b/tests/ui/closures/supertrait-hint-references-assoc-ty.rs diff --git a/src/test/ui/closures/thir-unsafeck-issue-85871.rs b/tests/ui/closures/thir-unsafeck-issue-85871.rs index aea539b74..aea539b74 100644 --- a/src/test/ui/closures/thir-unsafeck-issue-85871.rs +++ b/tests/ui/closures/thir-unsafeck-issue-85871.rs |