run full query stack print just when RUST_BACKTRACE is set
This commit is contained in:
parent
2b91b7fba9
commit
01f838a626
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue