simplify merging of two vecs
This commit is contained in:
@@ -979,7 +979,7 @@ impl ConstructorSet {
|
||||
&& !(pcx.is_top_level && matches!(self, Self::NoConstructors))
|
||||
{
|
||||
// Treat all missing constructors as nonempty.
|
||||
missing.extend(missing_empty.drain(..));
|
||||
missing.append(&mut missing_empty);
|
||||
}
|
||||
|
||||
SplitConstructorSet { present, missing, missing_empty }
|
||||
|
||||
Reference in New Issue
Block a user