diff options
| author | bors <bors@rust-lang.org> | 2023-06-15 06:40:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-15 06:40:58 +0000 |
| commit | 52036f5a4554b7067ec51c1232080c42bdeca20a (patch) | |
| tree | bc4796331e65dc6e643c4f886235584c5513a671 /compiler/rustc_errors/src | |
| parent | 15a6362e000932819813cbf743e039f4a5347c48 (diff) | |
| parent | 24595f5db6c5fdb2879b9317f3dc576e5a9a98cc (diff) | |
| download | rust-52036f5a4554b7067ec51c1232080c42bdeca20a.tar.gz rust-52036f5a4554b7067ec51c1232080c42bdeca20a.zip | |
Auto merge of #2928 - oli-obk:rustup, r=oli-obk
Rustup
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index 7a297ea0d5f..24d1cc8af82 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -4,7 +4,7 @@ #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")] #![feature(array_windows)] -#![feature(drain_filter)] +#![feature(extract_if)] #![feature(if_let_guard)] #![feature(let_chains)] #![feature(never_type)] @@ -1399,7 +1399,7 @@ impl HandlerInner { !self.emitted_diagnostics.insert(diagnostic_hash) }; - diagnostic.children.drain_filter(already_emitted_sub).for_each(|_| {}); + diagnostic.children.extract_if(already_emitted_sub).for_each(|_| {}); self.emitter.emit_diagnostic(diagnostic); if diagnostic.is_error() { |
