about summary refs log tree commit diff
path: root/src/test/ui/pattern/usefulness/match-slice-patterns.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-12/+0
2020-01-18slice_patterns: remove gates in testsMazdak Farrokhzad-2/+0
2019-11-05Use VarLenSlice consistently when splitting constructorsNadrieril-1/+1
The previous behaviour ignored slice lengths above a certain length because it could not do otherwise. We now have VarLenSlice however, that can represent the ignored lengths to make the algorithm more consistent. This does not change the correctness of the algorithm, but makes it easier to reason about. As a nice side-effect, exhaustiveness errors have improved: they now capture all missing lengths instead of only the shortest.
2019-10-27Gather together usefulness testsNadrieril-0/+14
I took most tests that were testing only for match exhaustiveness, pattern refutability or match arm reachability, and put them in the same test folder.