mirror of https://github.com/rust-lang/rust.git
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:
parent
6892fcd690
commit
2a1acc26a0
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue