rust/tests/ui/match
Matthias Krüger 47f1df5ca3
Rollup merge of #145676 - Oneirical:uncountable-integer-9, r=jieyouxu
Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [#2 of Batch #2]

Part of rust-lang/rust#133895

Methodology:

1. Refer to the previously written `tests/ui/SUMMARY.md`
2. Find an appropriate category for the test, using the original issue thread and the test contents.
3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers)
4. Rename the tests to make their purpose clearer

Inspired by the methodology that `@Kivooeo` was using.

r? `@jieyouxu`
2025-08-29 12:37:30 +02:00
..
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
postfix-match UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03: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
enum-and-break-in-match-issue-41213.rs Quickfix //@ check-pass is enough 2025-02-04 21:42:43 +05:30
expr-match-panic-fn.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
expr-match-panic.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08: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
guard-pattern-ordering-14865.rs comments 2025-08-05 19:34:46 +05: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
innocent-looking-match-crash-46964.rs Rehome tests/ui/issues/ tests [1/?] 2025-07-24 17:01:44 -04:00
intended-binding-pattern-is-const.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03: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 Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08: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 Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
issue-82392.stdout expand: Micro-optimize prelude injection 2025-07-28 17:35:09 +03: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-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 tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
match-disc-bot.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08: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 diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00: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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
match-ref-mut-let-invariance.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match-ref-mut-let-invariance.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01: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 compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03: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 tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08: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
mismatched-types-in-match-5358.rs Add test batch 1 2025-08-27 00:23:26 -04:00
mismatched-types-in-match-5358.stderr Add test batch 1 2025-08-27 00:23:26 -04:00
mismatched-types-in-match-7867.rs Add test batch 2 2025-08-27 15:06:05 -04:00
mismatched-types-in-match-7867.stderr Add test batch 2 2025-08-27 15:06:05 -04:00
multiple-refutable-patterns-13867.rs comments 2025-08-05 19:34:46 +05: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
option-result-mismatch-11844.rs comments 2025-07-31 21:25:49 +05:00
option-result-mismatch-11844.stderr comments 2025-07-31 21:25:49 +05:00
option-result-type-param-mismatch-13466.rs comments 2025-07-31 21:25:49 +05:00
option-result-type-param-mismatch-13466.stderr comments 2025-07-31 21:25:49 +05:00
overeager-sub-match-pruning-13027.rs comments 2025-07-31 21:25:49 +05:00
pattern-deref-miscompile.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
privately-uninhabited-issue-137999.rs mir_build: consider privacy when checking for irrefutable patterns 2025-03-07 16:16:41 +01:00
privately-uninhabited-issue-137999.stderr mir_build: consider privacy when checking for irrefutable patterns 2025-03-07 16:16:41 +01: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
slice-move-out-error-12567.rs comments 2025-07-31 21:25:49 +05:00
slice-move-out-error-12567.stderr comments 2025-07-31 21:25:49 +05:00
struct-reference-patterns-12285.rs comments 2025-07-31 21:25:49 +05:00
tuple-usize-pattern-14393.rs comments 2025-08-05 19:34:46 +05:00
unreachable-pattern-if-variant-not-imported-19100.fixed Rehome tests/ui/issues/ tests [3/?] 2025-08-04 16:43:53 -04:00
unreachable-pattern-if-variant-not-imported-19100.rs Rehome tests/ui/issues/ tests [3/?] 2025-08-04 16:43:53 -04:00
unreachable-pattern-if-variant-not-imported-19100.stderr Rehome tests/ui/issues/ tests [3/?] 2025-08-04 16:43:53 -04:00
validate-range-endpoints.rs remove feature(inline_const_pat) 2025-03-21 09:35:31 +01:00
validate-range-endpoints.stderr remove feature(inline_const_pat) 2025-03-21 09:35:31 +01:00