From 6f8cd0c5c1d4fa96ac10373b2f91677ea7765f0e Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 18 Jul 2019 07:20:54 -0700 Subject: [PATCH] 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. --- tests/testsuite/support/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testsuite/support/mod.rs b/tests/testsuite/support/mod.rs index ec11905f569..745dc871d8c 100644 --- a/tests/testsuite/support/mod.rs +++ b/tests/testsuite/support/mod.rs @@ -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")) }