Skip to content

Commit a414492

Browse files
committed
reorder for clarity
1 parent edf7d1c commit a414492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/compiletest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ fn rustc_lib_path() -> PathBuf {
2727
fn run_tests(mode: &str, path: &str, target: &str, mut flags: Vec<String>) {
2828
let in_rustc_test_suite = rustc_test_suite().is_some();
2929
// Add some flags we always want.
30+
flags.push("--edition 2018".to_owned());
3031
if !in_rustc_test_suite {
3132
// Only `-Dwarnings` on the Miri side to make the rustc toolstate management less painful.
3233
// (We often get warnings when e.g. a feature gets stabilized or some lint gets added/improved.)
3334
flags.push("-Dwarnings -Dunused".to_owned()); // overwrite the -Aunused in compiletest-rs
3435
}
35-
flags.push("--edition 2018".to_owned());
3636
if let Ok(sysroot) = std::env::var("MIRI_SYSROOT") {
3737
flags.push(format!("--sysroot {}", sysroot));
3838
}

0 commit comments

Comments
 (0)