Skip to content

Commit

Permalink
compiler: always use var_os("RUST_BACKTRACE")
Browse files Browse the repository at this point in the history
There are 3 instances of var(...) and 3 instances of var_os(...); the
latter avoids an appearance of unhandled error, so use it everywhere.
  • Loading branch information
tamird committed Oct 6, 2023
1 parent ed90087 commit 2753052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_system/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ enum CodegenBackend {
}

fn main() {
if env::var("RUST_BACKTRACE").is_err() {
if env::var_os("RUST_BACKTRACE").is_none() {
env::set_var("RUST_BACKTRACE", "1");
}
env::set_var("CG_CLIF_DISABLE_INCR_CACHE", "1");
Expand Down

0 comments on commit 2753052

Please sign in to comment.