Skip to content

Commit 447c571

Browse files
committed
doc: rust: checkout the right tag on clone
This makes it more explicit that the right tag is needed. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent ab2e6c2 commit 447c571

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Documentation/rust/quick-start.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ version later on requires re-adding the component.
4949
Otherwise, if a standalone installer is used, the Rust repository may be cloned
5050
into the installation folder of the toolchain::
5151

52-
git clone --recurse-submodules https://github.com/rust-lang/rust $(rustc --print sysroot)/lib/rustlib/src/rust
52+
git clone --recurse-submodules \
53+
--branch $(scripts/min-tool-version.sh rustc) \
54+
https://github.com/rust-lang/rust \
55+
$(rustc --print sysroot)/lib/rustlib/src/rust
5356

5457
In this case, upgrading the Rust compiler version later on requires manually
5558
updating this clone.

0 commit comments

Comments
 (0)