diff options
| author | hosseind75 <dindar95@bk.ru> | 2020-09-19 17:51:24 +0430 |
|---|---|---|
| committer | hosseind88 <hosseind88@mail.ru> | 2020-10-09 20:57:44 +0330 |
| commit | ecd308ec394f9d01b4392ee0315ea64d52ab7caa (patch) | |
| tree | 9f5fa2c84485c39169a0f881ce1ab46feee7edf5 | |
| parent | adb7fc6283711c881186ca85bb9ac3bb8add099b (diff) | |
| download | rust-ecd308ec394f9d01b4392ee0315ea64d52ab7caa.tar.gz rust-ecd308ec394f9d01b4392ee0315ea64d52ab7caa.zip | |
ICEs should print the top of the query stack
| -rw-r--r-- | src/driver.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/driver.rs b/src/driver.rs index f4f2259cefd..c88dffc88f4 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -274,12 +274,7 @@ fn report_clippy_ice(info: &panic::PanicInfo<'_>, bug_report_url: &str) { handler.note_without_error(¬e); } - // 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> { |
