We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec2b311 commit 8076414Copy full SHA for 8076414
compiler/rustc_errors/src/lib.rs
@@ -556,7 +556,7 @@ impl Drop for HandlerInner {
556
// instead of "require some error happened". Sadly that isn't ideal, as
557
// lints can be `#[allow]`'d, potentially leading to this triggering.
558
// Also, "good path" should be replaced with a better naming.
559
- if !self.has_any_message() && !self.suppressed_expected_diag {
+ if !self.has_any_message() && !self.suppressed_expected_diag && !std::thread::panicking() {
560
let bugs = std::mem::replace(&mut self.delayed_good_path_bugs, Vec::new());
561
self.flush_delayed(
562
bugs,
0 commit comments