Skip to content

Commit c88bcce

Browse files
committed
Remove an unnecessary drop.
1 parent bf92f3b commit c88bcce

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_interface/src/callbacks.rs

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ fn track_diagnostic(diagnostic: &mut Diagnostic, f: &mut dyn FnMut(&mut Diagnost
3535
if let Some(diagnostics) = icx.diagnostics {
3636
let mut diagnostics = diagnostics.lock();
3737
diagnostics.extend(Some(diagnostic.clone()));
38-
std::mem::drop(diagnostics);
3938
}
4039

4140
// Diagnostics are tracked, we can ignore the dependency.

0 commit comments

Comments
 (0)