Skip to content

Commit

Permalink
Feed the dog
Browse files Browse the repository at this point in the history
  • Loading branch information
phansch committed Oct 9, 2019
1 parent 1814964 commit 4287e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver.rs
Expand Up @@ -301,7 +301,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);
Expand Down

0 comments on commit 4287e9e

Please sign in to comment.