summary refs log tree commit diff
path: root/tests/ui/pattern/usefulness
AgeCommit message (Expand)AuthorLines
2024-09-13Add a machine-applicable suggestion to "unreachable pattern"Nadrieril-84/+433
2024-09-11Revert warning empty patterns as unreachableNadrieril-427/+57
2024-08-20Move the "matches no value" note to be a span labelNadrieril-248/+124
2024-08-19Cap the number of patterns pointed to by the lintNadrieril-9/+52
2024-08-19Add a note with a link to explain empty typesNadrieril-17/+148
2024-08-19Reword the "unreachable pattern" explanationsNadrieril-391/+391
2024-08-13Remove a no-longer-true `assert`Nadrieril-95/+132
2024-08-10Test that 0/unknown-length arrays are nonemptyNadrieril-47/+144
2024-08-10Update testsNadrieril-451/+612
2024-08-10Stabilize `min_exhaustive_patterns`Nadrieril-1/+0
2024-07-24Improve "covered_by_many" errorNadrieril-21/+102
2024-07-24Explain why a given pattern is considered unreachableNadrieril-122/+824
2024-07-21Explain why we require `_` for empty patternsNadrieril-0/+10
2024-06-23Replace `f16` and `f128` pattern matching stubs with real implementationsTrevor Gross-23/+97
2024-05-26Auto merge of #124661 - RalfJung:only-structural-consts-in-patterns, r=pnkfelixbors-176/+24
2024-05-03turn pointer_structural_match into a hard errorRalf Jung-164/+24
2024-05-03remove IndirectStructuralMatch lint, emit the usual hard error insteadRalf Jung-12/+0
2024-05-02Stabilize exclusive_rangeRoss Smyth-96/+89
2024-04-01Fix union handling in exhaustivenessNadrieril-11/+12
2024-03-31Add testsNadrieril-0/+68
2024-03-18Rollup merge of #121823 - Nadrieril:never-witnesses, r=compiler-errorsMatthias Krüger-187/+880
2024-03-13Remove `MaybeInfiniteInt::JustAfterMax`Nadrieril-4/+4
2024-03-13Rollup merge of #121908 - Nadrieril:dynamic-variant-collection, r=matthewjasperMatthias Krüger-0/+14
2024-03-12Don't suggest an arm when suggesting a never patternNadrieril-15/+15
2024-03-12Suggest never pattern instead of `_` for empty typesNadrieril-57/+57
2024-03-12Run the empty_types tests with never_patterns tooNadrieril-187/+880
2024-03-09Lint small gaps between rangesNadrieril-0/+310
2024-03-09Allow lint where we don't careNadrieril-38/+40
2024-03-03Add and update tests to use `pattern_complexity`Guillaume Gomez-0/+3
2024-03-02Fix a subtle regressionNadrieril-0/+14
2024-02-23Rollup merge of #120742 - Nadrieril:use-min_exh_pats, r=compiler-errorsMatthias Krüger-220/+180
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-36/+36
2024-02-13Do not point at `#[allow(_)]` as the reason for compat lint triggeringEsteban Küber-6/+0
2024-02-13Prefer `min_exhaustive_patterns` in testsNadrieril-2/+2
2024-02-13Unmark the feature gate as incompleteNadrieril-218/+178
2024-02-08Rollup merge of #120775 - Nadrieril:more-min_exh_pats, r=compiler-errorsMatthias Krüger-16/+138
2024-02-08Test `min_exhaustive_patterns` in more casesNadrieril-16/+138
2024-02-07Prefer "0..MAX not covered" to "_ not covered"Nadrieril-29/+29
2024-02-07Add testsNadrieril-32/+176
2024-02-05update the tracking issue for structural match violationsRalf Jung-17/+17
2024-02-05show indirect_structural_match and pointer_structural_match in future compat ...Ralf Jung-0/+106
2024-02-05Rollup merge of #116284 - RalfJung:no-nan-match, r=cjgillotMatthias Krüger-22/+19
2024-01-26remove illegal_floating_point_literal_pattern lintRalf Jung-22/+19
2024-01-26Classify closure arguments in refutable pattern in argument errorDeadbeef-2/+2
2024-01-26Rollup merge of #118803 - Nadrieril:min-exhaustive-patterns, r=compiler-errorsMatthias Krüger-139/+773
2024-01-25Implement feature gate logicNadrieril-139/+773
2024-01-24remove StructuralEq traitRalf Jung-122/+102
2024-01-13Bless testsGeorge-lewis-0/+2
2024-01-11Only lint ranges that really overlapNadrieril-25/+19
2024-01-10Add test case for #119778Nadrieril-0/+48