Skip to content

Commit 6af9693

Browse files
committed
Prevent compile parts of rustc when using cargo dev ra-setup
1 parent 70c46de commit 6af9693

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_dev/src/ra_setup.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ fn inject_deps_into_manifest(
6868
});
6969

7070
// format a new [dependencies]-block with the new deps we need to inject
71-
let mut all_deps = String::from("[dependencies]\n");
71+
let mut all_deps = String::from("[target.'cfg(NOT_A_PLATFORM)'.dependencies]\n");
7272
new_deps.for_each(|dep_line| {
7373
all_deps.push_str(&dep_line);
7474
});
75+
all_deps.push_str("\n[dependencies]\n");
7576

7677
// replace "[dependencies]" with
7778
// [dependencies]

0 commit comments

Comments
 (0)