@@ -52,7 +52,7 @@ fn config(mode: &str, dir: PathBuf) -> compiletest::Config {
52
52
// as we'll get a duplicate matching versions. Instead, disambiguate with
53
53
// `--extern dep=path`.
54
54
// See https://github.com/rust-lang/rust-clippy/issues/4015.
55
- let needs_disambiguation = [ "serde" ] ;
55
+ let needs_disambiguation = [ "serde" , "regex" , "clippy_lints" ] ;
56
56
// This assumes that deps are compiled (they are for Cargo integration tests).
57
57
let deps = std:: fs:: read_dir ( host_libs ( ) . join ( "deps" ) ) . unwrap ( ) ;
58
58
let disambiguated = deps
@@ -62,7 +62,7 @@ fn config(mode: &str, dir: PathBuf) -> compiletest::Config {
62
62
// NOTE: This only handles a single dep
63
63
// https://github.com/laumann/compiletest-rs/issues/101
64
64
needs_disambiguation. iter ( ) . find_map ( |dep| {
65
- if name. starts_with ( & format ! ( "lib{}-" , dep) ) {
65
+ if name. starts_with ( & format ! ( "lib{}-" , dep) ) && name . ends_with ( ".rlib" ) {
66
66
Some ( format ! ( "--extern {}={}" , dep, path. display( ) ) )
67
67
} else {
68
68
None
@@ -95,8 +95,6 @@ fn config(mode: &str, dir: PathBuf) -> compiletest::Config {
95
95
96
96
fn run_mode ( mode : & str , dir : PathBuf ) {
97
97
let cfg = config ( mode, dir) ;
98
- // clean rmeta data, otherwise "cargo check; cargo test" fails (#2896)
99
- cfg. clean_rmeta ( ) ;
100
98
compiletest:: run_tests ( & cfg) ;
101
99
}
102
100
0 commit comments