summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/src/test/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/src/test/mod.rs')
-rw-r--r--src/tools/rustfmt/src/test/mod.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/tools/rustfmt/src/test/mod.rs b/src/tools/rustfmt/src/test/mod.rs
index 6b5bc2b30..cfad4a8ed 100644
--- a/src/tools/rustfmt/src/test/mod.rs
+++ b/src/tools/rustfmt/src/test/mod.rs
@@ -982,11 +982,7 @@ fn rustfmt() -> PathBuf {
assert!(
me.is_file() || me.with_extension("exe").is_file(),
"{}",
- if cfg!(release) {
- "no rustfmt bin, try running `cargo build --release` before testing"
- } else {
- "no rustfmt bin, try running `cargo build` before testing"
- }
+ "no rustfmt bin, try running `cargo build` or `cargo build --release` before testing"
);
me
}