Skip to content

Commit 09677c8

Browse files
jyn514ehuss
andcommitted
Be less unix-centric in error messages
Co-authored-by: Eric Huss <eric@huss.org>
1 parent ecfdced commit 09677c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cargo/core/compiler/custom_build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ impl BuildOutput {
598598
// Abort with an error.
599599
anyhow::bail!("Cannot set `RUSTC_BOOTSTRAP={}` from {}.\n\
600600
note: Crates cannot set `RUSTC_BOOTSTRAP` themselves, as doing so would subvert the stability guarantees of Rust for your project.\n\
601-
help: If you're sure you want to do this in your project, use `RUSTC_BOOTSTRAP={} cargo build` instead.\n\
601+
help: If you're sure you want to do this in your project, set the environment variable `RUSTC_BOOTSTRAP={}` before running cargo instead.\n\
602602
help: See https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-env for details.",
603603
val,
604604
whence,

tests/testsuite/build_script_env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fn rustc_bootstrap() {
122122
.build();
123123
p.cargo("build")
124124
.with_stderr_contains("error: Cannot set `RUSTC_BOOTSTRAP=1` [..]")
125-
.with_stderr_contains("help: [..] use `RUSTC_BOOTSTRAP=foo cargo build` [..]")
125+
.with_stderr_contains("help: [..] set the environment variable `RUSTC_BOOTSTRAP=foo` [..]")
126126
.with_status(101)
127127
.run();
128128
p.cargo("build")

0 commit comments

Comments
 (0)