Skip to content

Commit 4d43651

Browse files
authored
Clarify cargo fallback behavior for rustup link (rust-lang#1273)
1 parent a206009 commit 4d43651

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/building/how-to-build-and-run.md

+6
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,12 @@ The rustup toolchain points to the specified toolchain compiled in your `build`
233233
so the rustup toolchain will be updated whenever `x.py build` or `x.py test` are run for
234234
that toolchain/stage.
235235

236+
**Note:** the toolchain we've built does not include `cargo`. In this case, `rustup` will
237+
fall back to using `cargo` from the installed `nightly`, `beta`, or `stable` toolchain
238+
(in that order). If you need to use unstable `cargo` flags, be sure to run
239+
`rustup install nightly` if you haven't already. See the
240+
[rustup documentation on custom toolchains](https://rust-lang.github.io/rustup/concepts/toolchains.html#custom-toolchains).
241+
236242
## Other `x.py` commands
237243

238244
Here are a few other useful `x.py` commands. We'll cover some of them in detail

0 commit comments

Comments
 (0)