Skip to content

Commit 4241536

Browse files
committed
Remove --edition=2015 from rustdoc-gui tests only
1 parent 536f8ff commit 4241536

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/tools/compiletest/src/rustdoc_gui_test.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ impl RustdocGuiTestProps {
3333

3434
let props = TestProps::from_file(test_file_path, None, &config);
3535

36-
let TestProps { compile_flags, run_flags, .. } = props;
36+
let TestProps { mut compile_flags, run_flags, .. } = props;
37+
// We don't want to pass `--edition=2015` in, which is being set by default by
38+
// `TestProps::from_file`.
39+
compile_flags.remove(0);
3740
Self { compile_flags, run_flags }
3841
}
3942
}

0 commit comments

Comments
 (0)