diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-06-15 06:31:45 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-06-15 06:31:45 +0000 |
| commit | 24595f5db6c5fdb2879b9317f3dc576e5a9a98cc (patch) | |
| tree | bc4796331e65dc6e643c4f886235584c5513a671 /compiler/rustc_errors/src | |
| parent | 36e0c4260328e8886a7458c350e46a62d672aa87 (diff) | |
| parent | 44789b626b7b03cd57edab04fd6ebaafe349e954 (diff) | |
| download | rust-24595f5db6c5fdb2879b9317f3dc576e5a9a98cc.tar.gz rust-24595f5db6c5fdb2879b9317f3dc576e5a9a98cc.zip | |
Merge from rustc
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() { |
