rust/tests/ui/match
dianne ac922245f0 best_blame_constraint: don't filter constraints by sup SCC
The SCCs of the region graph are not a reliable heuristic to use for blaming an interesting
constraint for diagnostics. For region errors, if the outlived region is `'static`, or the involved
types are invariant in their lifetiems, there will be cycles in the constraint graph containing both
the target region and the most interesting constraints to blame. To get better diagnostics in these
cases, this commit removes that heuristic.
2025-01-06 16:08:29 -08:00
..
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
postfix-match Fix suggestions for match non-exhaustiveness 2024-04-02 19:06:28 -04:00
ref_pat_eat_one_layer_2024 add_move_error_suggestions: use a HIR visitor rather than SourceMap 2024-11-25 20:29:04 -08:00
const_non_normal_zst_ref_pattern.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dont-highlight-diverging-arms.rs Remove a suggestion that is redundant 2024-02-15 17:20:44 +00:00
dont-highlight-diverging-arms.stderr Remove a suggestion that is redundant 2024-02-15 17:20:44 +00:00
expr-match-panic-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
expr-match-panic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
expr_before_ident_pat.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
expr_before_ident_pat.stderr Change wording 2024-04-29 14:53:38 +02:00
guards-parenthesized-and.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
guards.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
intended-binding-pattern-is-const.rs Point at const when intended binding fall-through pattern is a const 2024-11-17 23:40:00 +00:00
intended-binding-pattern-is-const.stderr Point at const when intended binding fall-through pattern is a const 2024-11-17 23:40:00 +00:00
issue-5530.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-11319.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-11319.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-11940.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-12552.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-12552.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-18060.rs Allow lint where we don't care 2024-03-09 01:13:42 +01:00
issue-26251.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-26996.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-27021.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-33498.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-36401.rs Move tests 2024-03-03 16:30:48 -03:00
issue-37598.rs Move tests 2024-03-03 16:30:48 -03:00
issue-42679.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-46920-byte-array-patterns.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-56685.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-56685.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-70972-dyn-trait.rs Only rewrite valtree-constants to patterns and keep other constants opaque 2023-05-31 14:02:57 +00:00
issue-70972-dyn-trait.stderr Specify type kind of constant that can't be used in patterns 2024-12-04 20:29:36 +00:00
issue-72680.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-72896-non-partial-eq-const.rs Reword message for non-structural type constant in pattern 2024-12-04 20:29:36 +00:00
issue-72896-non-partial-eq-const.stderr Add more context to fall-through "const pattern of non-structural type" error 2024-12-04 20:29:36 +00:00
issue-74050-end-span.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-74050-end-span.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-82392.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-82392.stdout hir pretty: fix block indent 2024-05-20 20:30:44 +02:00
issue-82866.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-82866.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-84434.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-91058.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-91058.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-92100.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-92100.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-112438.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-113012.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-114691.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-115681.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
match-arm-resolving-to-never.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-arm-resolving-to-never.stderr Only point out non-diverging arms for match suggestions 2024-02-15 15:44:46 +00:00
match-bot-panic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
match-disc-bot.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
match-float.rs Replace f16 and f128 pattern matching stubs with real implementations 2024-06-23 04:28:42 -05:00
match-fn-call.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-fn-call.stderr Update tests for new TRPL chapter order 2024-11-23 08:57:25 -07:00
match-ill-type2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-ill-type2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
match-incompat-type-semi.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-incompat-type-semi.stderr Filter empty lines, comments and delimiters from previous to last multiline span rendering 2024-12-12 23:36:27 +00:00
match-join.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-join.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
match-no-arms-unreachable-after.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-no-arms-unreachable-after.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
match-on-negative-integer-ranges.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
match-pattern-field-mismatch-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-pattern-field-mismatch-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
match-pattern-field-mismatch.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-pattern-field-mismatch.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
match-range-fail-2.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
match-range-fail-2.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
match-range-fail.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-range-fail.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-ref-mut-invariance.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-ref-mut-invariance.stderr best_blame_constraint: don't filter constraints by sup SCC 2025-01-06 16:08:29 -08:00
match-ref-mut-let-invariance.rs best_blame_constraint: don't filter constraints by sup SCC 2025-01-06 16:08:29 -08:00
match-ref-mut-let-invariance.stderr best_blame_constraint: don't filter constraints by sup SCC 2025-01-06 16:08:29 -08:00
match-ref-mut-stability.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
match-struct.rs Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
match-struct.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
match-tag-nullary.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-tag-nullary.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
match-tag-unary.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-tag-unary.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
match-tail-expr-never-type-error.rs Account for ! arm in tail match expr 2023-11-27 16:19:02 +00:00
match-tail-expr-never-type-error.stderr Account for ! arm in tail match expr 2023-11-27 16:19:02 +00:00
match-type-err-first-arm.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-type-err-first-arm.stderr Filter empty lines, comments and delimiters from previous to last multiline span rendering 2024-12-12 23:36:27 +00:00
match-unresolved-one-arm.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-unresolved-one-arm.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
match-vec-mismatch-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-vec-mismatch-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
match-wildcards.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
match_non_exhaustive.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
match_non_exhaustive.stderr Tweak spans for "adt defined here" note 2023-11-03 18:26:16 +01:00
non-first-arm-doesnt-match-expected-return-type.rs Point at return type when it influences non-first match arm 2023-08-14 21:43:56 +00:00
non-first-arm-doesnt-match-expected-return-type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
pattern-deref-miscompile.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
single-line.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
single-line.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
validate-range-endpoints.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
validate-range-endpoints.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00