about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-14 05:29:55 +0000
committerbors <bors@rust-lang.org>2023-12-14 05:29:55 +0000
commit4a4a8966bd140a0e28d6a26c4e504514f2e7067a (patch)
treec45eac208e30cda04a260493b0b9645faf52d73f /compiler/rustc_pattern_analysis/src
parentfda521a988749458326ecef2e92e979077727a4e (diff)
parent7d4f92a309b67a04bcb5729f0420b21812ea8aef (diff)
downloadrust-4a4a8966bd140a0e28d6a26c4e504514f2e7067a.tar.gz
rust-4a4a8966bd140a0e28d6a26c4e504514f2e7067a.zip
Auto merge of #3224 - rust-lang:rustup-2023-12-14, r=saethlin
Automatic Rustup
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
-rw-r--r--compiler/rustc_pattern_analysis/src/constructor.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_pattern_analysis/src/constructor.rs b/compiler/rustc_pattern_analysis/src/constructor.rs
index 716ccdd4dcd..3bca7894a29 100644
--- a/compiler/rustc_pattern_analysis/src/constructor.rs
+++ b/compiler/rustc_pattern_analysis/src/constructor.rs
@@ -979,7 +979,8 @@ impl ConstructorSet {
             && !(pcx.is_top_level && matches!(self, Self::NoConstructors))
         {
             // Treat all missing constructors as nonempty.
-            missing.extend(missing_empty.drain(..));
+            // This clears `missing_empty`.
+            missing.append(&mut missing_empty);
         }
 
         SplitConstructorSet { present, missing, missing_empty }