ICEs should print the top of the query stack

This commit is contained in:
hosseind75 2020-09-19 17:51:24 +04:30 committed by hosseind88
parent adb7fc6283
commit ecd308ec39

View file

@ -274,12 +274,7 @@ fn report_clippy_ice(info: &panic::PanicInfo<'_>, bug_report_url: &str) {
handler.note_without_error(&note);
}
// If backtraces are enabled, also print the query stack
let backtrace = env::var_os("RUST_BACKTRACE").map_or(false, |x| &x != "0");
if backtrace {
TyCtxt::try_print_query_stack(&handler);
}
TyCtxt::try_print_query_stack(&handler, Some(2));
}
fn toolchain_path(home: Option<String>, toolchain: Option<String>) -> Option<PathBuf> {