]> git.lizzy.rs Git - rust.git/blobdiff - tests/compiletest.rs
reorder for clarity
[rust.git] / tests / compiletest.rs
index 21366c3dbf505b8e237fdaa99ad3525ab218e9b1..eaf7f8531b8fc293ae8a36126be498997df93f42 100644 (file)
@@ -27,12 +27,12 @@ fn rustc_lib_path() -> PathBuf {
 fn run_tests(mode: &str, path: &str, target: &str, mut flags: Vec<String>) {
     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));
     }