Skip to content

Commit 09f9947

Browse files
committed
Gather together usefulness tests
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.
1 parent 0f677c6 commit 09f9947

File tree

55 files changed

+6
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+6
-3
lines changed

src/librustc_mir/hair/pattern/_match.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/// Note: most tests relevant to this file can be found (at the time of writing)
2+
/// in src/tests/ui/pattern/usefulness.
3+
///
14
/// This file includes the logic for exhaustiveness and usefulness checking for
25
/// pattern-matching. Specifically, given a list of patterns for a type, we can
36
/// tell whether:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)