rust/tests/ui/closures
Matthias Krüger 958417fba1
Rollup merge of #119554 - matthewjasper:remove-guard-distinction, r=compiler-errors
Fix scoping for let chains in match guards

If let guards were previously represented as a different type of guard in HIR and THIR. This meant that let chains in match guards were not handled correctly because they were treated exactly like normal guards.

- Remove `hir::Guard` and `thir::Guard`.
- Make the scoping different between normal guards and if let guards also check for let chains.

closes #118593
2024-01-05 20:39:52 +01:00
..
2229_closure_analysis Remove hir::Guard 2024-01-05 10:56:59 +00:00
binder Simple modification of diagnostic information 2023-12-21 10:17:11 +08:00
closure-expected-type
print rename to verbose-internals 2023-12-19 13:35:37 -05:00
add_semicolon_non_block_closure.rs
add_semicolon_non_block_closure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
cannot-call-unsized-via-ptr-2.rs
cannot-call-unsized-via-ptr-2.stderr
cannot-call-unsized-via-ptr.rs
cannot-call-unsized-via-ptr.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
capture-unsized-by-move.rs Check that closure's by-value captures are sized 2023-09-23 04:19:14 +00:00
capture-unsized-by-move.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
capture-unsized-by-ref.rs Check that closure's by-value captures are sized 2023-09-23 04:19:14 +00:00
closure_cap_coerce_many_fail.rs
closure_cap_coerce_many_fail.stderr adjust how closure/generator types and rvalues are printed 2023-09-21 22:20:58 +02:00
closure_no_cap_coerce_many_check_pass.rs
closure_no_cap_coerce_many_run_pass.rs
closure_no_cap_coerce_many_unsafe_0.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
closure_no_cap_coerce_many_unsafe_0.stderr Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
closure_no_cap_coerce_many_unsafe_1.rs
closure_promotion.rs
closure-array-break-length.rs
closure-array-break-length.stderr
closure-bounds-cant-promote-superkind-in-struct.rs
closure-bounds-cant-promote-superkind-in-struct.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
closure-bounds-static-cant-capture-borrowed.rs
closure-bounds-static-cant-capture-borrowed.stderr
closure-bounds-subtype.rs
closure-bounds-subtype.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
closure-expected.rs Pretty print Fn traits in rustc_on_unimplemented 2023-11-02 20:57:05 +00:00
closure-expected.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
closure-immutable-outer-variable.fixed
closure-immutable-outer-variable.rs
closure-immutable-outer-variable.rs.fixed
closure-immutable-outer-variable.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
closure-move-sync.rs
closure-move-sync.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
closure-no-fn-1.rs
closure-no-fn-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
closure-no-fn-2.rs
closure-no-fn-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
closure-no-fn-3.rs
closure-no-fn-3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
closure-no-fn-4.rs
closure-no-fn-4.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
closure-no-fn-5.rs
closure-no-fn-5.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
closure-referencing-itself-issue-25954.rs
closure-referencing-itself-issue-25954.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
closure-reform-bad.rs
closure-reform-bad.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
closure-return-type-mismatch.rs
closure-return-type-mismatch.stderr
closure-return-type-must-be-sized.rs
closure-return-type-must-be-sized.stderr
closure-wrong-kind.rs
closure-wrong-kind.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
coerce-unsafe-closure-to-unsafe-fn-ptr.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
coerce-unsafe-closure-to-unsafe-fn-ptr.stderr Stabilize THIR unsafeck 2024-01-05 10:00:59 +00:00
coerce-unsafe-to-closure.rs
coerce-unsafe-to-closure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
deeply-nested_closures.rs
diverging-closure.rs
infer-signature-from-impl.next.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
infer-signature-from-impl.rs update use of feature flags 2023-12-14 15:22:37 +01:00
issue-868.rs Add allow-by-default lint for unit bindings 2023-11-20 11:45:44 +08:00
issue-6801.rs
issue-6801.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-10398.rs
issue-10398.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-11873.rs
issue-11873.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-23012-supertrait-signature-inference.rs
issue-25439.rs s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
issue-25439.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-41366.rs
issue-42463.rs
issue-46742.rs
issue-48109.rs
issue-52437.rs
issue-52437.stderr
issue-67123.rs
issue-67123.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-68025.rs
issue-72408-nested-closures-exponential.rs
issue-78720.rs
issue-78720.stderr
issue-80313-mutable-borrow-in-closure.rs
issue-80313-mutable-borrow-in-closure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-80313-mutable-borrow-in-move-closure.rs
issue-80313-mutable-borrow-in-move-closure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-80313-mutation-in-closure.rs
issue-80313-mutation-in-closure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-80313-mutation-in-move-closure.rs
issue-80313-mutation-in-move-closure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-81700-mut-borrow.rs
issue-81700-mut-borrow.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-82438-mut-without-upvar.rs
issue-82438-mut-without-upvar.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-84044-drop-non-mut.rs
issue-84044-drop-non-mut.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-84128.rs
issue-84128.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-87461.rs
issue-87461.stderr
issue-87814-1.rs
issue-87814-2.rs
issue-90871.rs
issue-90871.stderr adjust how closure/generator types and rvalues are printed 2023-09-21 22:20:58 +02:00
issue-97607.rs
issue-99565.rs
issue-99565.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-101696.rs
issue-102089-multiple-opaque-cast.rs
issue-109188.rs
issue-109188.stderr
issue-111932.rs
issue-111932.stderr
issue-113087.rs
issue-113087.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
local-type-mix.rs
local-type-mix.stderr
multiple-fn-bounds.rs
multiple-fn-bounds.stderr recurse into refs when comparing tys for diagnostics 2023-12-07 23:00:46 -05:00
old-closure-arg-call-as.rs
old-closure-arg.rs
old-closure-explicit-types.rs
old-closure-expr-precedence.rs
old-closure-expr-precedence.stderr
old-closure-expression-remove-semicolon.fixed
old-closure-expression-remove-semicolon.rs
old-closure-expression-remove-semicolon.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
old-closure-fn-coerce.rs
old-closure-iter-1.rs
old-closure-iter-2.rs
once-move-out-on-heap.rs
self-supertrait-bounds.rs
semistatement-in-lambda.rs
static-closures-with-nonstatic-return.rs
supertrait-hint-cycle-2.rs
supertrait-hint-cycle-3.rs
supertrait-hint-cycle.rs
supertrait-hint-references-assoc-ty.rs
thir-unsafeck-issue-85871.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00