Switch ui tests to trybuild

This commit is contained in:
David Tolnay
2019-05-03 23:23:02 -07:00
parent 28ce892617
commit 140f9beee7
98 changed files with 5 additions and 350 deletions
+3 -18
View File
@@ -1,21 +1,6 @@
#![cfg(feature = "compiletest")]
use compiletest_rs as compiletest;
#[rustc::attr(not(nightly), ignore)]
#[test]
fn ui() {
compiletest::run_tests(&compiletest::Config {
mode: compiletest::common::Mode::Ui,
src_base: std::path::PathBuf::from("tests/ui"),
target_rustcflags: Some(String::from(
"\
--edition=2018 \
-L deps/target/debug/deps \
-Z unstable-options \
--extern serde_derive \
",
)),
build_base: std::path::PathBuf::from("../target/ui"),
..Default::default()
});
let t = trybuild::TestCases::new();
t.compile_fail("tests/ui/**/*.rs");
}