Skip to content

Commit 0b18165

Browse files
committed
Remove unhelpful link to Cargo book
It didn't have any information about RUSTC_BOOTSTRAP itself, only the general `rustc-env` feature.
1 parent a6394bc commit 0b18165

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/cargo/core/compiler/custom_build.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -589,17 +589,15 @@ impl BuildOutput {
589589
// behavior, so still only give a warning.
590590
if nightly_features_allowed {
591591
warnings.push(format!("Cannot set `RUSTC_BOOTSTRAP={}` from {}.\n\
592-
note: Crates cannot set `RUSTC_BOOTSTRAP` themselves, as doing so would subvert the stability guarantees of Rust for your project.\n\
593-
help: See https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-env for details.",
592+
note: Crates cannot set `RUSTC_BOOTSTRAP` themselves, as doing so would subvert the stability guarantees of Rust for your project.",
594593
val, whence
595594
));
596595
} else {
597596
// Setting RUSTC_BOOTSTRAP would change the behavior of the crate.
598597
// Abort with an error.
599598
anyhow::bail!("Cannot set `RUSTC_BOOTSTRAP={}` from {}.\n\
600599
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, set the environment variable `RUSTC_BOOTSTRAP={}` before running cargo instead.\n\
602-
help: See https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-env for details.",
600+
help: If you're sure you want to do this in your project, set the environment variable `RUSTC_BOOTSTRAP={}` before running cargo instead.",
603601
val,
604602
whence,
605603
pkg_name,

0 commit comments

Comments
 (0)