Skip to content

Commit

Permalink
ICEs should print the top of the query stack
Browse files Browse the repository at this point in the history
  • Loading branch information
hosseind75 authored and hosseind88 committed Oct 9, 2020
1 parent adb7fc6 commit ecd308e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/driver.rs
Expand Up @@ -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> {
Expand Down

0 comments on commit ecd308e

Please sign in to comment.