Make compiletest setup consistent with serde_json
This commit is contained in:
parent
fea4e8e5b6
commit
b605cd1bb9
@ -4,7 +4,7 @@ use compiletest_rs as compiletest;
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn ui() {
|
fn ui() {
|
||||||
let config = compiletest::Config {
|
compiletest::run_tests(&compiletest::Config {
|
||||||
mode: compiletest::common::Mode::Ui,
|
mode: compiletest::common::Mode::Ui,
|
||||||
src_base: std::path::PathBuf::from("tests/ui"),
|
src_base: std::path::PathBuf::from("tests/ui"),
|
||||||
target_rustcflags: Some(String::from(
|
target_rustcflags: Some(String::from(
|
||||||
@ -16,7 +16,5 @@ fn ui() {
|
|||||||
",
|
",
|
||||||
)),
|
)),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
});
|
||||||
|
|
||||||
compiletest::run_tests(&config);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user