Update ui tests to 2018 edition

This commit is contained in:
David Tolnay
2018-12-31 21:36:59 -05:00
parent ab3f4971f0
commit 05ab569a80
189 changed files with 401 additions and 490 deletions
+6 -1
View File
@@ -7,7 +7,12 @@ fn ui() {
let config = compiletest::Config {
mode: compiletest::common::Mode::Ui,
src_base: std::path::PathBuf::from("tests/ui"),
target_rustcflags: Some("-L deps/target/debug/deps".to_owned()),
target_rustcflags: Some(String::from("\
--edition=2018 \
-L deps/target/debug/deps \
-Z unstable-options \
--extern serde_derive \
")),
..Default::default()
};