mirror of
https://github.com/rust-lang/cargo
synced 2024-11-05 18:50:39 +00:00
Be less unix-centric in error messages
Co-authored-by: Eric Huss <eric@huss.org>
This commit is contained in:
parent
ecfdced0d8
commit
09677c83c2
2 changed files with 2 additions and 2 deletions
|
@ -598,7 +598,7 @@ impl BuildOutput {
|
|||
// Abort with an error.
|
||||
anyhow::bail!("Cannot set `RUSTC_BOOTSTRAP={}` from {}.\n\
|
||||
note: Crates cannot set `RUSTC_BOOTSTRAP` themselves, as doing so would subvert the stability guarantees of Rust for your project.\n\
|
||||
help: If you're sure you want to do this in your project, use `RUSTC_BOOTSTRAP={} cargo build` instead.\n\
|
||||
help: If you're sure you want to do this in your project, set the environment variable `RUSTC_BOOTSTRAP={}` before running cargo instead.\n\
|
||||
help: See https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-env for details.",
|
||||
val,
|
||||
whence,
|
||||
|
|
|
@ -122,7 +122,7 @@ fn rustc_bootstrap() {
|
|||
.build();
|
||||
p.cargo("build")
|
||||
.with_stderr_contains("error: Cannot set `RUSTC_BOOTSTRAP=1` [..]")
|
||||
.with_stderr_contains("help: [..] use `RUSTC_BOOTSTRAP=foo cargo build` [..]")
|
||||
.with_stderr_contains("help: [..] set the environment variable `RUSTC_BOOTSTRAP=foo` [..]")
|
||||
.with_status(101)
|
||||
.run();
|
||||
p.cargo("build")
|
||||
|
|
Loading…
Reference in a new issue