Detail how to run locally-built nightly cargo
authorDale Wijnand <344610+dwijnand@users.noreply.github.com>
Mon, 14 May 2018 20:34:41 +0000 (22:34 +0200)
committerGitHub <noreply@github.com>
Mon, 14 May 2018 20:34:41 +0000 (22:34 +0200)
Documenting from https://gitter.im/rust-lang/cargo?at=5af6d407862c5e33e92bf2ca.

ARCHITECTURE.md

index cd09883ee0c258a2b92e197a8d20835dfb503680..d296507facd8c43d64d21fbfeb36f8e3e41fe444 100644 (file)
@@ -106,7 +106,10 @@ assert_that(
 Alternatively to build and run a custom version of cargo simply run `cargo build`
 and execute `target/debug/cargo`. Note that `+nightly`/`+stable` (and variants),
 being [rustup](https://rustup.rs/) features, won't work when executing the locally
-built cargo binary directly.
+built cargo binary directly, you have to instead build with `cargo +nightly build`
+and run with `rustup run` (e.g `rustup run nightly
+<path-to-cargo>/target/debug/cargo <args>..`) (or set the `RUSTC` env var to point
+to nightly rustc).
 
 Because the test suite has `#![deny(warnings)]` at times you might find it
 convenient to override this with `RUSTFLAGS`, for example