Skip to content

Commit

Permalink
Prevent compile parts of rustc when using cargo dev ra-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dima74 committed Aug 9, 2020
1 parent 70c46de commit 6af9693
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clippy_dev/src/ra_setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6af9693

Please sign in to comment.