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.
This commit is contained in:
parent
d4ba2b4c7c
commit
7654d4b398
2 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue