Skip to content

Commit

Permalink
Fix major diagnostic regression
Browse files Browse the repository at this point in the history
Future work: maybe add a new method to the query context trait to see if we are unwinding for a purpose and not an ice?
  • Loading branch information
RossSmyth committed Dec 21, 2023
1 parent b679d8a commit abe9c14
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions compiler/rustc_query_system/src/query/plumbing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use rustc_data_structures::stack::ensure_sufficient_stack;
use rustc_data_structures::sync::Lock;
#[cfg(parallel_compiler)]
use rustc_data_structures::{outline, sync};
use rustc_errors::{DiagnosticBuilder, ErrorGuaranteed, StashKey};
use rustc_errors::{DiagnosticBuilder, ErrorGuaranteed, FatalError, StashKey};
use rustc_span::{Span, DUMMY_SP};
use std::cell::Cell;
use std::collections::hash_map::Entry;
Expand Down Expand Up @@ -370,9 +370,7 @@ where
// so we just return the error.
cycle_error(query, qcx, id, span)
}
QueryResult::Poisoned => {
panic!("job for query '{}' failed to start and was poisoned", query.name())
}
QueryResult::Poisoned => FatalError.raise(),
}
}
}
Expand Down

0 comments on commit abe9c14

Please sign in to comment.