Skip to content

Commit 01f838a

Browse files
hosseind75hosseind88
authored andcommitted
run full query stack print just when RUST_BACKTRACE is set
1 parent 2b91b7f commit 01f838a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler/rustc_middle/src/ty/query/plumbing.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ impl<'tcx> TyCtxt<'tcx> {
124124
})
125125
}
126126

127-
pub fn try_print_query_stack(handler: &Handler, num_frames: Option<usize>) {
127+
pub fn try_print_query_stack(
128+
handler: &Handler,
129+
num_frames: Option<usize>,
130+
backtrace: Option<bool>,
131+
) {
128132
eprintln!("query stack during panic:");
129133

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

0 commit comments

Comments
 (0)