rust/src/test/ui/pattern/usefulness
Devin Ragotzy 2a042d6105 Filter unstable and doc hidden variants in usefulness checking
Add test cases for unstable variants
Add test cases for doc hidden variants
Move is_doc_hidden to method on TyCtxt
Add unstable variants test to reachable-patterns ui test
Rename reachable-patterns -> omitted-patterns
2021-10-12 08:22:25 -04:00
..
auxiliary Filter unstable and doc hidden variants in usefulness checking 2021-10-12 08:22:25 -04:00
integer-ranges Replace Pat with a new intermediate representation 2021-09-26 00:30:38 +01:00
always-inhabited-union-ref.rs Update tests for erasing regions in typeck 2020-03-17 09:07:56 +00:00
always-inhabited-union-ref.stderr Add note to non-exhaustive match on reference to empty 2021-01-03 19:05:23 +01:00
const-pat-ice.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
const-private-fields.rs Add tests 2021-09-22 17:38:46 +01:00
consts-opaque.rs Add some tests 2020-12-22 15:20:23 +00:00
consts-opaque.stderr Replace Pat with a new intermediate representation 2021-09-26 00:30:38 +01:00
deny-irrefutable-let-patterns.rs Don't mark if_let_guard as an incomplete feature 2021-08-16 17:10:31 +02:00
deny-irrefutable-let-patterns.stderr Don't mark if_let_guard as an incomplete feature 2021-08-16 17:10:31 +02:00
doc-hidden-non-exhaustive.rs Filter unstable and doc hidden variants in usefulness checking 2021-10-12 08:22:25 -04:00
doc-hidden-non-exhaustive.stderr Filter unstable and doc hidden variants in usefulness checking 2021-10-12 08:22:25 -04:00
empty-match.exhaustive_patterns.stderr Add tests for uninhabited types 2021-01-12 19:59:10 +00:00
empty-match.normal.stderr Add tests for uninhabited types 2021-01-12 19:59:10 +00:00
empty-match.rs Add tests for uninhabited types 2021-01-12 19:59:10 +00:00
floats.rs Improve integer range tests 2020-11-21 01:38:42 +00:00
floats.stderr Improve integer range tests 2020-11-21 01:38:42 +00:00
guards.rs Improve integer range tests 2020-11-21 01:38:42 +00:00
guards.stderr Improve integer range tests 2020-11-21 01:38:42 +00:00
irrefutable-let-patterns.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
irrefutable-unit.rs
issue-2111.rs Keep all witnesses of non-exhaustiveness 2020-12-18 16:21:38 +00:00
issue-2111.stderr Keep all witnesses of non-exhaustiveness 2020-12-18 16:21:38 +00:00
issue-3096-1.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-3096-1.stderr Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-3096-2.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-3096-2.stderr Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-3601.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
issue-3601.stderr Rework Fields internals. 2021-09-26 00:05:52 +01:00
issue-4321.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-4321.stderr Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-12116.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
issue-12116.stderr Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
issue-12369.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-12369.stderr Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-13727.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-13727.stderr Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-15129.rs Keep all witnesses of non-exhaustiveness 2020-12-18 16:21:38 +00:00
issue-15129.stderr Keep all witnesses of non-exhaustiveness 2020-12-18 16:21:38 +00:00
issue-30240-b.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-30240-b.stderr Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-30240-rpass.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-30240.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-30240.stderr Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-31221.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-31221.stderr Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-31561.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-31561.stderr Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-35609.rs
issue-35609.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
issue-39362.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-39362.stderr Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-40221.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-40221.stderr Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-50900.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-50900.stderr Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-53820-slice-pattern-large-array.rs slice_patterns: organize some tests 2020-01-18 19:33:47 +01:00
issue-56379.rs Keep all witnesses of non-exhaustiveness 2020-12-18 16:21:38 +00:00
issue-56379.stderr Keep all witnesses of non-exhaustiveness 2020-12-18 16:21:38 +00:00
issue-57472.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-57472.stderr Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-65413-constants-and-slices-exhaustiveness.rs slice_patterns: organize some tests 2020-01-18 19:33:47 +01:00
issue-66501.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
issue-71930-type-of-match-scrutinee.rs We don't use tyerr anymore 2020-05-17 17:38:23 +01:00
issue-72377.rs Add match pattern diagnostics regression test 2021-02-13 14:13:14 +01:00
issue-72377.stderr Add match pattern diagnostics regression test 2021-02-13 14:13:14 +01:00
issue-72476-and-89393-associated-type.rs Normalize after substituting via field.ty() 2021-10-01 19:45:19 +01:00
issue-78123-non-exhaustive-reference.rs Add notes to stderr of non-exhaustive-reference test 2021-01-03 21:12:27 +01:00
issue-78123-non-exhaustive-reference.stderr Add notes to stderr of non-exhaustive-reference test 2021-01-03 21:12:27 +01:00
issue-78549-ref-pat-and-str.rs Fix #78549 2020-11-01 02:04:42 +00:00
issue-80501-or-pat-and-macro.rs Identify subpatterns by the path to them instead of spans 2021-01-24 20:28:30 +00:00
issue-82772-match-box-as-struct.rs Add tests 2021-09-22 17:38:46 +01:00
issue-82772-match-box-as-struct.stderr Add tests 2021-09-22 17:38:46 +01:00
match-arm-statics-2.rs tests: remove ignore directives from tests that mention core/alloc/std spans. 2020-04-02 11:48:34 +03:00
match-arm-statics-2.stderr Remove trailing whitespace from error messages 2021-08-04 10:48:30 +02:00
match-arm-statics.rs
match-arm-statics.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
match-byte-array-patterns-2.rs
match-byte-array-patterns-2.stderr Fix exhaustiveness in case a byte string literal is used at slice type 2020-11-17 09:07:23 +00:00
match-byte-array-patterns.rs slice_patterns: remove gates in tests 2020-01-18 19:33:47 +01:00
match-byte-array-patterns.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
match-non-exhaustive.rs
match-non-exhaustive.stderr Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
match-privately-empty.rs tests: remove ignore directives from tests that mention core/alloc/std spans. 2020-04-02 11:48:34 +03:00
match-privately-empty.stderr Remove trailing whitespace from error messages 2021-08-04 10:48:30 +02:00
match-ref-ice.rs
match-ref-ice.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
match-slice-patterns.rs slice_patterns: remove gates in tests 2020-01-18 19:33:47 +01:00
match-slice-patterns.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
match-vec-fixed.rs
match-vec-fixed.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
match-vec-unreachable.rs slice_patterns: remove gates in tests 2020-01-18 19:33:47 +01:00
match-vec-unreachable.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
nested-exhaustive-match.rs
non-exhaustive-defined-here.rs
non-exhaustive-defined-here.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
non-exhaustive-match-nested.rs slice_patterns: remove gates in tests 2020-01-18 19:33:47 +01:00
non-exhaustive-match-nested.stderr path trimming: ignore type aliases 2021-02-06 12:03:48 +02:00
non-exhaustive-match.rs Keep all witnesses of non-exhaustiveness 2020-12-18 16:21:38 +00:00
non-exhaustive-match.stderr Remove trailing whitespace from error messages 2021-08-04 10:48:30 +02:00
non-exhaustive-pattern-witness.rs slice_patterns: remove gates in tests 2020-01-18 19:33:47 +01:00
non-exhaustive-pattern-witness.stderr non-exhastive diagnostic: add note re. scrutinee type 2020-03-27 06:49:07 +01:00
refutable-pattern-errors.rs Remove redundant ignore-tidy-linelength annotations 2021-04-03 22:30:20 +02:00
refutable-pattern-errors.stderr Remove redundant ignore-tidy-linelength annotations 2021-04-03 22:30:20 +02:00
refutable-pattern-in-fn-arg.rs
refutable-pattern-in-fn-arg.stderr non-exhastive diagnostic: add note re. scrutinee type 2020-03-27 06:49:07 +01:00
slice-pattern-const-2.rs Implement destructuring for all aggregates and for references 2020-09-20 13:28:18 +02:00
slice-pattern-const-2.stderr Implement destructuring for all aggregates and for references 2020-09-20 13:28:18 +02:00
slice-pattern-const-3.rs Implement destructuring for all aggregates and for references 2020-09-20 13:28:18 +02:00
slice-pattern-const-3.stderr Implement destructuring for all aggregates and for references 2020-09-20 13:28:18 +02:00
slice-pattern-const.rs Add some tests 2019-11-21 11:20:46 +00:00
slice-pattern-const.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
slice-patterns-exhaustiveness.rs Implement destructuring for all aggregates and for references 2020-09-20 13:28:18 +02:00
slice-patterns-exhaustiveness.stderr Implement destructuring for all aggregates and for references 2020-09-20 13:28:18 +02:00
slice-patterns-irrefutable.rs slice_patterns: remove gates in tests 2020-01-18 19:33:47 +01:00
slice-patterns-reachability.rs slice_patterns: remove gates in tests 2020-01-18 19:33:47 +01:00
slice-patterns-reachability.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
stable-gated-patterns.rs Filter unstable and doc hidden variants in usefulness checking 2021-10-12 08:22:25 -04:00
stable-gated-patterns.stderr Filter unstable and doc hidden variants in usefulness checking 2021-10-12 08:22:25 -04:00
struct-like-enum-nonexhaustive.rs
struct-like-enum-nonexhaustive.stderr non-exhastive diagnostic: add note re. scrutinee type 2020-03-27 06:49:07 +01:00
struct-pattern-match-useless.rs
struct-pattern-match-useless.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
top-level-alternation.rs Handle irrufutable or unreachable let-else 2021-08-30 20:18:43 -05:00
top-level-alternation.stderr Handle irrufutable or unreachable let-else 2021-08-30 20:18:43 -05:00
tuple-struct-nonexhaustive.rs
tuple-struct-nonexhaustive.stderr non-exhastive diagnostic: add note re. scrutinee type 2020-03-27 06:49:07 +01:00
type_polymorphic_byte_str_literals.rs Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
type_polymorphic_byte_str_literals.stderr Regroup many usefulness-related test in the same folder 2020-11-19 19:52:54 +00:00
uninhabited.rs Add tests for uninhabited types 2021-01-12 19:59:10 +00:00
unstable-gated-patterns.rs Filter unstable and doc hidden variants in usefulness checking 2021-10-12 08:22:25 -04:00
unstable-gated-patterns.stderr Filter unstable and doc hidden variants in usefulness checking 2021-10-12 08:22:25 -04:00