We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9aa0e7 commit 97906bcCopy full SHA for 97906bc
src/librustc/ty/query/plumbing.rs
@@ -325,6 +325,9 @@ impl<'tcx> TyCtxt<'tcx> {
325
pub fn try_print_query_stack(handler: &Handler) {
326
eprintln!("query stack during panic:");
327
328
+ // Be careful reyling on global state here: this code is called from
329
+ // a panic hook, which means that the global `Handler` may be in a weird
330
+ // state if it was responsible for triggering the panic.
331
tls::with_context_opt(|icx| {
332
if let Some(icx) = icx {
333
let mut current_query = icx.query.clone();
0 commit comments