Skip to content

Commit

Permalink
Merge rust-lang#39
Browse files Browse the repository at this point in the history
39: Add `cargo-fix` executable r=killercup a=oli-obk

fixes rust-lang#32
  • Loading branch information
bors[bot] committed Oct 23, 2017
2 parents 07c611b + e4a2312 commit ad3a7de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/bin/cargo-fix.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// horrible hack to get cargo to not complain about both
// the `cargo-fix` and `rustfix` targets to point to the
// same source file
include!("../main.rs");
4 changes: 2 additions & 2 deletions tests/fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ fn fixtures() {

let manifest = format!("--manifest-path={}", &manifest[1..manifest.len() - 1]);
let cmd = if yolo {
cmd!("cargo", "run", manifest, "--quiet", "--", "--clippy", "--yolo")
cmd!("cargo", "run", manifest, "--bin", "rustfix", "--quiet", "--", "--clippy", "--yolo")
} else {
cmd!("cargo", "run", manifest, "--quiet", "--", "--clippy")
cmd!("cargo", "run", manifest, "--bin", "rustfix", "--quiet", "--", "--clippy")
};
cmd.dir(&dir)
.stdin(test.join("input.txt"))
Expand Down

0 comments on commit ad3a7de

Please sign in to comment.