summary refs log tree commit diff
path: root/src/test/ui/pattern/usefulness/match-empty.rs
AgeCommit message (Collapse)AuthorLines
2019-12-11Revert a diagnostic change in the case of integer rangesNadrieril-1/+1
2019-12-04Use the default code path to list missing patternsNadrieril-6/+6
This uses the exact same code path that would be used for `match x { _ if false => {} }`, since in both cases the resulting matrix is empty. Since we think the behaviour in that case is ok, then we can remove the special case and use the default code path.
2019-12-04List missing constructors in an almost empty matchNadrieril-13/+19
Actually empty matches are still handled by a different code path
2019-12-04Add testsNadrieril-10/+37
2019-12-04Only warn about missing patterns in the case of an enumNadrieril-4/+4
2019-12-04Add testsNadrieril-1/+12
2019-12-04Tweak error on empty matchNadrieril-1/+1
2019-12-04Add testsNadrieril-0/+48