rust/src/test/ui/closures
bors 46b8c23f3e Auto merge of #93967 - cjgillot:short-struct-span, r=petrochenkov
Shorten def_span for more items.

The `def_span` query only returns the signature span for functions.
Struct/enum/union definitions can also have a very long body.
This PR shortens the associated span.
2022-07-01 20:14:34 +00:00
..
2229_closure_analysis Auto merge of #93967 - cjgillot:short-struct-span, r=petrochenkov 2022-07-01 20:14:34 +00:00
closure-expected-type Fully stabilize NLL 2022-06-03 17:16:41 -04:00
print Create core::fmt::ArgumentV1 with generics instead of fn pointer 2022-01-29 13:52:19 +00:00
add_semicolon_non_block_closure.rs Suggest adding a semicolon to a closure without block 2022-05-24 21:57:51 +00:00
add_semicolon_non_block_closure.stderr Suggest adding a semicolon to a closure without block 2022-05-24 21:57:51 +00:00
closure_cap_coerce_many_fail.rs
closure_cap_coerce_many_fail.stderr Resolve vars in note_type_err 2022-05-06 23:35:42 -04:00
closure_no_cap_coerce_many_check_pass.rs
closure_no_cap_coerce_many_run_pass.rs
closure_no_cap_coerce_many_unsafe_0.mir.stderr
closure_no_cap_coerce_many_unsafe_0.rs
closure_no_cap_coerce_many_unsafe_0.thir.stderr
closure_no_cap_coerce_many_unsafe_1.rs
closure_promotion.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
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
closure-bounds-static-cant-capture-borrowed.rs Fully stabilize NLL 2022-06-03 17:16:41 -04:00
closure-bounds-static-cant-capture-borrowed.stderr Fully stabilize NLL 2022-06-03 17:16:41 -04:00
closure-bounds-subtype.rs
closure-bounds-subtype.stderr Point at call span that introduced obligation for the arg 2021-09-16 12:12:27 +00:00
closure-expected.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
closure-expected.stderr Bless ui tests 2021-12-17 20:46:48 +08:00
closure-immutable-outer-variable.fixed
closure-immutable-outer-variable.rs
closure-immutable-outer-variable.rs.fixed
closure-immutable-outer-variable.stderr
closure-move-sync.rs
closure-move-sync.stderr Greatly improve error reporting for futures and generators in note_obligation_cause_code 2022-06-19 15:31:22 -05:00
closure-no-fn-1.rs
closure-no-fn-1.stderr
closure-no-fn-2.rs
closure-no-fn-2.stderr
closure-no-fn-3.rs
closure-no-fn-3.stderr
closure-no-fn-4.rs
closure-no-fn-4.stderr
closure-no-fn-5.rs
closure-no-fn-5.stderr
closure-referencing-itself-issue-25954.rs
closure-referencing-itself-issue-25954.stderr
closure-reform-bad.rs
closure-reform-bad.stderr Implementation for 65853 2022-04-16 02:26:56 -04:00
closure-return-type-mismatch.rs
closure-return-type-mismatch.stderr
closure-wrong-kind.rs
closure-wrong-kind.stderr
coerce-unsafe-closure-to-unsafe-fn-ptr.mir.stderr Revert "add DefId to unsafety violations and display function path in E0133" 2022-04-26 14:49:28 +00:00
coerce-unsafe-closure-to-unsafe-fn-ptr.rs
coerce-unsafe-closure-to-unsafe-fn-ptr.thir.stderr only show a simple description in E0133 span label 2022-04-24 18:33:07 +02:00
coerce-unsafe-to-closure.rs
coerce-unsafe-to-closure.stderr diagnostics: tweak error message to give more rationale to unsafe Fn 2022-04-05 11:13:48 -07:00
deeply-nested_closures.rs
diverging-closure.rs
issue-6801.rs Move some tests to more reasonable places 2022-05-08 17:31:05 -03:00
issue-6801.stderr fix one more case of trailing space 2022-06-16 14:40:29 +03:00
issue-10398.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-10398.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-41366.rs
issue-42463.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-46742.rs
issue-48109.rs
issue-52437.rs
issue-52437.stderr add new emit_inference_failure_err 2022-06-02 10:19:15 +02:00
issue-67123.rs
issue-67123.stderr
issue-68025.rs
issue-72408-nested-closures-exponential.rs
issue-78720.rs Move some tests to more reasonable directories 2021-09-15 14:03:27 -03:00
issue-78720.stderr Move some tests to more reasonable directories 2021-09-15 14:03:27 -03:00
issue-80313-mutable-borrow-in-closure.rs
issue-80313-mutable-borrow-in-closure.stderr
issue-80313-mutable-borrow-in-move-closure.rs
issue-80313-mutable-borrow-in-move-closure.stderr
issue-80313-mutation-in-closure.rs
issue-80313-mutation-in-closure.stderr
issue-80313-mutation-in-move-closure.rs
issue-80313-mutation-in-move-closure.stderr
issue-81700-mut-borrow.rs
issue-81700-mut-borrow.stderr
issue-82438-mut-without-upvar.rs
issue-82438-mut-without-upvar.stderr fix one more case of trailing space 2022-06-16 14:40:29 +03:00
issue-84044-drop-non-mut.rs Add test for old ICE 2022-01-28 18:42:23 -05:00
issue-84044-drop-non-mut.stderr Add test for old ICE 2022-01-28 18:42:23 -05:00
issue-84128.rs
issue-84128.stderr Implementation for 65853 2022-04-16 02:26:56 -04:00
issue-87461.rs
issue-87461.stderr Bless tests. 2022-06-10 20:16:35 +02:00
issue-87814-1.rs
issue-87814-2.rs Stabilize try_reserve 2021-10-04 10:29:46 +01:00
local-type-mix.rs
local-type-mix.stderr
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 only suggest removing semicolon when expr implements trait 2022-04-10 16:30:14 -07:00
old-closure-expression-remove-semicolon.rs only suggest removing semicolon when expr implements trait 2022-04-10 16:30:14 -07:00
old-closure-expression-remove-semicolon.stderr only suggest removing semicolon when expr implements trait 2022-04-10 16:30:14 -07:00
old-closure-fn-coerce.rs
old-closure-iter-1.rs
old-closure-iter-2.rs
once-move-out-on-heap.rs Move some tests to more reasonable directories 2021-11-18 12:09:34 -03:00
semistatement-in-lambda.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
thir-unsafeck-issue-85871.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00