Skip to content

Commit ab2e6c2

Browse files
committed
doc: rust: explain rust-src needs to be re-added on upgrade
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent a099b65 commit ab2e6c2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Documentation/rust/quick-start.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,17 @@ If ``rustup`` is being used, run::
4343

4444
rustup component add rust-src
4545

46+
The components are installed per toolchain, thus upgrading the Rust compiler
47+
version later on requires re-adding the component.
48+
4649
Otherwise, if a standalone installer is used, the Rust repository may be cloned
4750
into the installation folder of the toolchain::
4851

4952
git clone --recurse-submodules https://github.com/rust-lang/rust $(rustc --print sysroot)/lib/rustlib/src/rust
5053

54+
In this case, upgrading the Rust compiler version later on requires manually
55+
updating this clone.
56+
5157

5258
libclang
5359
********

0 commit comments

Comments
 (0)