Switch ui tests to trybuild

This commit is contained in:
David Tolnay committed 2019-05-06 10:25:47 -07:00
1 parent 28ce892617
commit 140f9beee7
98 files changed
+5 -350

No files matched your search

+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");
}