Skip to content

Commit 606743e

Browse files
authored
Rollup merge of rust-lang#65880 - Nadrieril:gather-usefulness-tests, r=varkor
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. I found it helpful to have them all in the same place when working on the usefulness algorithm.
2 parents 75a127c + 09f9947 commit 606743e

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)