mirror of https://github.com/rust-lang/cargo
Fix a typo in an env var name
Not actually used yet in rust-lang/rust, but may as well try to get it right on the first try.
This commit is contained in:
parent
49e4af0394
commit
6f8cd0c5c1
|
@ -1650,7 +1650,7 @@ pub fn rustc_host() -> String {
|
|||
}
|
||||
|
||||
pub fn is_nightly() -> bool {
|
||||
env::var("CARGO_TEST_DIABLE_NIGHTLY").is_err()
|
||||
env::var("CARGO_TEST_DISABLE_NIGHTLY").is_err()
|
||||
&& RUSTC
|
||||
.with(|r| r.verbose_version.contains("-nightly") || r.verbose_version.contains("-dev"))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue