diff options
| author | bors <bors@rust-lang.org> | 2023-12-13 04:38:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-13 04:38:30 +0000 |
| commit | 9f1bfe53b60101962501cbfef0456bab5f9bebfc (patch) | |
| tree | bec83af07c2a3aa95c270d7f54029cd3dddddd52 /compiler/rustc_pattern_analysis/src | |
| parent | 77d16997566dfb2384bcbc504e2579c7ae973666 (diff) | |
| parent | f9078a40ee265222c08a6373aa1a87ba647ee45d (diff) | |
| download | rust-9f1bfe53b60101962501cbfef0456bab5f9bebfc.tar.gz rust-9f1bfe53b60101962501cbfef0456bab5f9bebfc.zip | |
Auto merge of #118900 - workingjubilee:rollup-wkv9hq1, r=workingjubilee
Rollup of 10 pull requests Successful merges: - #118858 (Remove dead codes in core) - #118864 (Fix alignment passed down to LLVM for simd_masked_load) - #118872 (Add rustX check to codeblock attributes lint) - #118873 (fix `waker_getters` tracking issue number) - #118884 (NFC: simplify merging of two vecs) - #118885 (clippy::complexity fixes) - #118886 (Clean up variables in `search.js`) - #118887 (Typo) - #118889 (more clippy::complexity fixes) - #118891 (Actually parse async gen blocks correctly) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
| -rw-r--r-- | compiler/rustc_pattern_analysis/src/constructor.rs | 3 |
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 } |
