Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2a1acc2

Browse files
matthiaskrgrNadrieril
andauthoredDec 12, 2023
Update compiler/rustc_pattern_analysis/src/constructor.rs
add note that `missing_empty` is cleared now Co-authored-by: Nadrieril <Nadrieril@users.noreply.github.com>
1 parent 6892fcd commit 2a1acc2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎compiler/rustc_pattern_analysis/src/constructor.rs

+1
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,7 @@ impl ConstructorSet {
979979
&& !(pcx.is_top_level && matches!(self, Self::NoConstructors))
980980
{
981981
// Treat all missing constructors as nonempty.
982+
// This clears `missing_empty`.
982983
missing.append(&mut missing_empty);
983984
}
984985

0 commit comments

Comments
 (0)
Failed to load comments.