mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 03:44:24 +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
|
// 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 {
|
if backtrace {
|
||||||
TyCtxt::try_print_query_stack(&handler);
|
TyCtxt::try_print_query_stack(&handler);
|
||||||
|
Loading…
Reference in New Issue
Block a user