mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 11:23:03 +00:00
Feed the dog
This commit is contained in:
parent
21dee8f529
commit
44eec0884d
@ -277,7 +277,7 @@ fn report_clippy_ice(info: &panic::PanicInfo<'_>, bug_report_url: &str) {
|
||||
}
|
||||
|
||||
// If backtraces are enabled, also print the query stack
|
||||
let backtrace = std::env::var_os("RUST_BACKTRACE").map(|x| &x != "0").unwrap_or(false);
|
||||
let backtrace = std::env::var_os("RUST_BACKTRACE").map_or(false, |x| &x != "0");
|
||||
|
||||
if backtrace {
|
||||
TyCtxt::try_print_query_stack(&handler);
|
||||
|
Loading…
Reference in New Issue
Block a user