1
Fork 0

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 be719d11e5
commit 17eb8d8b34
3 changed files with 6 additions and 13 deletions

View file

@ -1211,12 +1211,7 @@ pub fn report_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(|x| &x != "0").unwrap_or(false);
if backtrace {
TyCtxt::try_print_query_stack(&handler);
}
TyCtxt::try_print_query_stack(&handler, Some(2));
#[cfg(windows)]
unsafe {