Skip to content

Commit

Permalink
run full query stack print just when RUST_BACKTRACE is set
Browse files Browse the repository at this point in the history
  • Loading branch information
hosseind75 authored and hosseind88 committed Oct 9, 2020
1 parent 2b91b7f commit 01f838a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compiler/rustc_middle/src/ty/query/plumbing.rs
Expand Up @@ -124,7 +124,11 @@ impl<'tcx> TyCtxt<'tcx> {
})
}

pub fn try_print_query_stack(handler: &Handler, num_frames: Option<usize>) {
pub fn try_print_query_stack(
handler: &Handler,
num_frames: Option<usize>,
backtrace: Option<bool>,
) {
eprintln!("query stack during panic:");

// Be careful reyling on global state here: this code is called from
Expand Down

0 comments on commit 01f838a

Please sign in to comment.