mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-28 07:30:57 +00:00
Prevent compile parts of rustc when using cargo dev ra-setup
This commit is contained in:
parent
70c46de012
commit
6af969379e
1 changed files with 2 additions and 1 deletions
|
@ -68,10 +68,11 @@ fn inject_deps_into_manifest(
|
|||
});
|
||||
|
||||
// format a new [dependencies]-block with the new deps we need to inject
|
||||
let mut all_deps = String::from("[dependencies]\n");
|
||||
let mut all_deps = String::from("[target.'cfg(NOT_A_PLATFORM)'.dependencies]\n");
|
||||
new_deps.for_each(|dep_line| {
|
||||
all_deps.push_str(&dep_line);
|
||||
});
|
||||
all_deps.push_str("\n[dependencies]\n");
|
||||
|
||||
// replace "[dependencies]" with
|
||||
// [dependencies]
|
||||
|
|
Loading…
Reference in a new issue