1
Fork 0

never consider unsafe blocks unused if they would be required with unsafe_op_in_unsafe_fn

This commit is contained in:
Ralf Jung 2022-08-02 15:47:14 -04:00
parent 4493a0f472
commit ee3fc9dff8
10 changed files with 124 additions and 631 deletions

View file

@ -566,7 +566,7 @@ impl Drop for DiagnosticBuilderInner<'_> {
),
));
handler.emit_diagnostic(&mut self.diagnostic);
panic!();
panic!("error was constructed but not emitted");
}
}
// `.emit()` was previously called, or maybe we're during `.cancel()`.