diff options
| author | Ralf Jung <post@ralfj.de> | 2022-08-02 15:47:14 -0400 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-08-02 17:09:41 -0400 |
| commit | ee3fc9dff8f2cff217883cd4a6f979677a1263f9 (patch) | |
| tree | 876b43d0db16306b95492e49d58ef758f0a6ba00 /compiler/rustc_errors | |
| parent | 4493a0f4724c0bae1436242d76cccc9c0a287b80 (diff) | |
| download | rust-ee3fc9dff8f2cff217883cd4a6f979677a1263f9.tar.gz rust-ee3fc9dff8f2cff217883cd4a6f979677a1263f9.zip | |
never consider unsafe blocks unused if they would be required with unsafe_op_in_unsafe_fn
Diffstat (limited to 'compiler/rustc_errors')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic_builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/diagnostic_builder.rs b/compiler/rustc_errors/src/diagnostic_builder.rs index 9e68ee282e6..04159bff4ff 100644 --- a/compiler/rustc_errors/src/diagnostic_builder.rs +++ b/compiler/rustc_errors/src/diagnostic_builder.rs @@ -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()`. |
