Skip to content

Commit 7567b52

Browse files
authored
Rollup merge of rust-lang#66330 - Nadrieril:nonexhaustive-constructor, r=varkor
Improve non-exhaustiveness handling in usefulness checking The comments around code paths for the `non_exhaustive` feature mention stuff like "we act as if the type had an extra unmatcheable constructor". So I thought I'd make this explicit by defining a special constructor that does exactly this. This makes those code paths a bit more legible and less prone to error.
2 parents 15d0c31 + e398d89 commit 7567b52

File tree

1 file changed

+185
-182
lines changed

1 file changed

+185
-182
lines changed

0 commit comments

Comments
 (0)