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>
This commit is contained in:
Matthias Krüger 2023-12-12 21:12:19 +01:00 committed by GitHub
parent 6892fcd690
commit 2a1acc26a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}