mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Add mercy for devs that run cargo test
without building
This commit is contained in:
parent
5473c3fd92
commit
cd925f0140
@ -900,6 +900,10 @@ fn rustfmt() -> PathBuf {
|
|||||||
me.pop(); // chop of the test name
|
me.pop(); // chop of the test name
|
||||||
me.pop(); // chop off `deps`
|
me.pop(); // chop off `deps`
|
||||||
me.push("rustfmt");
|
me.push("rustfmt");
|
||||||
|
assert!(
|
||||||
|
me.is_file() || me.with_extension("exe").is_file(),
|
||||||
|
"no rustfmt bin, try running `cargo build` before testing"
|
||||||
|
);
|
||||||
return me;
|
return me;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user