Skip to content

Commit 2753052

Browse files
committed
compiler: always use var_os("RUST_BACKTRACE")
There are 3 instances of var(...) and 3 instances of var_os(...); the latter avoids an appearance of unhandled error, so use it everywhere.
1 parent ed90087 commit 2753052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: build_system/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ enum CodegenBackend {
5555
}
5656

5757
fn main() {
58-
if env::var("RUST_BACKTRACE").is_err() {
58+
if env::var_os("RUST_BACKTRACE").is_none() {
5959
env::set_var("RUST_BACKTRACE", "1");
6060
}
6161
env::set_var("CG_CLIF_DISABLE_INCR_CACHE", "1");

0 commit comments

Comments
 (0)