Make compiletest setup consistent with serde_json

This commit is contained in:
David Tolnay 2019-01-12 16:22:23 -08:00
parent fea4e8e5b6
commit b605cd1bb9
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -4,7 +4,7 @@ use compiletest_rs as compiletest;
#[test]
fn ui() {
let config = compiletest::Config {
compiletest::run_tests(&compiletest::Config {
mode: compiletest::common::Mode::Ui,
src_base: std::path::PathBuf::from("tests/ui"),
target_rustcflags: Some(String::from(
@ -16,7 +16,5 @@ fn ui() {
",
)),
..Default::default()
};
compiletest::run_tests(&config);
});
}