From 43e1527e2f87b97e8ef5806d9b8f6766db35a412 Mon Sep 17 00:00:00 2001 From: Rustin170506 Date: Wed, 18 Dec 2024 21:56:58 +0800 Subject: [PATCH] docs: add missing argument to Rustup Cargo workaround Signed-off-by: Rustin170506 --- src/doc/contrib/src/process/working-on-cargo.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/doc/contrib/src/process/working-on-cargo.md b/src/doc/contrib/src/process/working-on-cargo.md index fa583ff1134..d3069702e6b 100644 --- a/src/doc/contrib/src/process/working-on-cargo.md +++ b/src/doc/contrib/src/process/working-on-cargo.md @@ -72,7 +72,8 @@ the directory for each compilation, this can cause different calls to `rustc` to use different versions. There are a few workarounds: * Don't use rustup overrides. -* Use `rustup run target/debug/cargo` to execute `cargo`. +* Use `rustup run target/debug/cargo` to specify the toolchain(rustc) to use. + For example, `rustup run nightly target/debug/cargo`. * Set the `RUSTC` environment variable to a specific `rustc` executable (not the rustup wrapper). * Create a [custom toolchain]. This is a bit of a hack, but you can create a