never consider unsafe blocks unused if they would be required with unsafe_op_in_unsafe_fn
This commit is contained in:
parent
4493a0f472
commit
ee3fc9dff8
10 changed files with 124 additions and 631 deletions
|
@ -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()`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue