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
1 changed files with 1 additions and 0 deletions
|
@ -979,6 +979,7 @@ impl ConstructorSet {
|
||||||
&& !(pcx.is_top_level && matches!(self, Self::NoConstructors))
|
&& !(pcx.is_top_level && matches!(self, Self::NoConstructors))
|
||||||
{
|
{
|
||||||
// Treat all missing constructors as nonempty.
|
// Treat all missing constructors as nonempty.
|
||||||
|
// This clears `missing_empty`.
|
||||||
missing.append(&mut missing_empty);
|
missing.append(&mut missing_empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue