mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 23:24:24 +00:00
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 <matthias.krueger@famsik.de>
This commit is contained in:
commit
3971c42458
1 changed files with 4 additions and 1 deletions
|
@ -75,7 +75,10 @@ fn config(mode: &str, dir: PathBuf) -> compiletest::Config {
|
|||
}
|
||||
|
||||
fn run_mode(mode: &str, dir: PathBuf) {
|
||||
compiletest::run_tests(&config(mode, dir));
|
||||
let cfg = config(mode, dir);
|
||||
// clean rmeta data, otherwise "cargo check; cargo test" fails (#2896)
|
||||
cfg.clean_rmeta();
|
||||
compiletest::run_tests(&cfg);
|
||||
}
|
||||
|
||||
fn run_ui_toml_tests(config: &compiletest::Config, mut tests: Vec<test::TestDescAndFn>) -> Result<bool, io::Error> {
|
||||
|
|
Loading…
Reference in a new issue