From a414492cc736111446a11925aadba5605496624c Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 31 Jul 2019 13:48:49 +0200 Subject: [PATCH] reorder for clarity --- tests/compiletest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/compiletest.rs b/tests/compiletest.rs index 21366c3dbf5..eaf7f8531b8 100644 --- a/tests/compiletest.rs +++ b/tests/compiletest.rs @@ -27,12 +27,12 @@ fn rustc_lib_path() -> PathBuf { fn run_tests(mode: &str, path: &str, target: &str, mut flags: Vec) { let in_rustc_test_suite = rustc_test_suite().is_some(); // Add some flags we always want. + flags.push("--edition 2018".to_owned()); if !in_rustc_test_suite { // Only `-Dwarnings` on the Miri side to make the rustc toolstate management less painful. // (We often get warnings when e.g. a feature gets stabilized or some lint gets added/improved.) flags.push("-Dwarnings -Dunused".to_owned()); // overwrite the -Aunused in compiletest-rs } - flags.push("--edition 2018".to_owned()); if let Ok(sysroot) = std::env::var("MIRI_SYSROOT") { flags.push(format!("--sysroot {}", sysroot)); } -- 2.44.0