about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorKyle Lin <minecraft.kyle.train@gmail.com>2023-07-03 08:40:34 +0800
committerKyle Lin <minecraft.kyle.train@gmail.com>2023-08-18 15:19:23 +0800
commit713e78cdd8d24cbefbc6b1ff97b15bf4c30b6567 (patch)
tree750a7460aa52b2da97bf4918e139ee363f49f6c3 /compiler/rustc_errors/src
parentf0b2cca185555ba20d7b95d073eedd03cda99ce9 (diff)
downloadrust-713e78cdd8d24cbefbc6b1ff97b15bf4c30b6567.tar.gz
rust-713e78cdd8d24cbefbc6b1ff97b15bf4c30b6567.zip
fix
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index bbbe21a5893..34518b53759 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -1384,7 +1384,7 @@ impl HandlerInner {
                     !self.emitted_diagnostics.insert(diagnostic_hash)
                 };
 
-                diagnostic.children.extract_from(already_emitted_sub).for_each(|_| {});
+                diagnostic.children.extract_if(already_emitted_sub).for_each(|_| {});
 
                 self.emitter.emit_diagnostic(diagnostic);
                 if diagnostic.is_error() {