Skip to content

Commit ecd308e

Browse files
hosseind75hosseind88
authored and
hosseind88
committed
ICEs should print the top of the query stack
1 parent adb7fc6 commit ecd308e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/driver.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,7 @@ fn report_clippy_ice(info: &panic::PanicInfo<'_>, bug_report_url: &str) {
274274
handler.note_without_error(&note);
275275
}
276276

277-
// If backtraces are enabled, also print the query stack
278-
let backtrace = env::var_os("RUST_BACKTRACE").map_or(false, |x| &x != "0");
279-
280-
if backtrace {
281-
TyCtxt::try_print_query_stack(&handler);
282-
}
277+
TyCtxt::try_print_query_stack(&handler, Some(2));
283278
}
284279

285280
fn toolchain_path(home: Option<String>, toolchain: Option<String>) -> Option<PathBuf> {

0 commit comments

Comments
 (0)