Feed the dog

This commit is contained in:
Philipp Hansch 2019-10-09 20:51:45 +02:00
parent 21dee8f529
commit 44eec0884d
No known key found for this signature in database
GPG Key ID: 82AA61CAA11397E6

View File

@ -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);