Skip to content

Commit 3971c42

Browse files
Merge #3380
3380: compiletest: clean rmeta data (from "cargo check") before running compiletest r=phansch a=matthiaskrgr Fixes #2896 Fixes #2139 Co-authored-by: Matthias Krüger <[email protected]>
2 parents e2df3e2 + be7656d commit 3971c42

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/compile-test.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ fn config(mode: &str, dir: PathBuf) -> compiletest::Config {
7575
}
7676

7777
fn run_mode(mode: &str, dir: PathBuf) {
78-
compiletest::run_tests(&config(mode, dir));
78+
let cfg = config(mode, dir);
79+
// clean rmeta data, otherwise "cargo check; cargo test" fails (#2896)
80+
cfg.clean_rmeta();
81+
compiletest::run_tests(&cfg);
7982
}
8083

8184
fn run_ui_toml_tests(config: &compiletest::Config, mut tests: Vec<test::TestDescAndFn>) -> Result<bool, io::Error> {

0 commit comments

Comments
 (0)