Skip to content

Commit af98105

Browse files
committed
Auto merge of #5533 - dwijnand:patch-1, r=matklad
Detail how to run locally-built nightly cargo Documenting from https://gitter.im/rust-lang/cargo?at=5af6d407862c5e33e92bf2ca. Apologies if this is documenting too much what is effectively rustup behaviour. Let me know if it's time to replace this with links to rustup docs instead.
2 parents e92a443 + 4a9066a commit af98105

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ARCHITECTURE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ assert_that(
106106
Alternatively to build and run a custom version of cargo simply run `cargo build`
107107
and execute `target/debug/cargo`. Note that `+nightly`/`+stable` (and variants),
108108
being [rustup](https://rustup.rs/) features, won't work when executing the locally
109-
built cargo binary directly.
109+
built cargo binary directly, you have to instead build with `cargo +nightly build`
110+
and run with `rustup run` (e.g `rustup run nightly
111+
<path-to-cargo>/target/debug/cargo <args>..`) (or set the `RUSTC` env var to point
112+
to nightly rustc).
110113

111114
Because the test suite has `#![deny(warnings)]` at times you might find it
112115
convenient to override this with `RUSTFLAGS`, for example

0 commit comments

Comments
 (0)