Skip to content

Commit

Permalink
Update compiler/rustc_pattern_analysis/src/constructor.rs
Browse files Browse the repository at this point in the history
add note that `missing_empty` is cleared now

Co-authored-by: Nadrieril <[email protected]>
  • Loading branch information
matthiaskrgr and Nadrieril committed Dec 12, 2023
1 parent 6892fcd commit 2a1acc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_pattern_analysis/src/constructor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,7 @@ impl ConstructorSet {
&& !(pcx.is_top_level && matches!(self, Self::NoConstructors))
{
// Treat all missing constructors as nonempty.
// This clears `missing_empty`.
missing.append(&mut missing_empty);
}

Expand Down

0 comments on commit 2a1acc2

Please sign in to comment.