10608: Amend the instruction for rustup. r=lnicola a=jhscheer

The current instruction for installation via rustup are misleading.

Co-authored-by: Jan Scheer <jhscheer@users.noreply.github.com>
This commit is contained in:
bors[bot] 2021-10-22 07:18:05 +00:00 committed by GitHub
commit dc5afb1573
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,9 +173,11 @@ On Unix, running the editor from a shell or changing the `.desktop` file to set
`rust-analyzer` is available in `rustup`, but only in the nightly toolchain: `rust-analyzer` is available in `rustup`, but only in the nightly toolchain:
[source,bash] [source,bash]
--- ----
$ rustup +nightly component add rust-analyzer-preview $ rustup +nightly component add rust-analyzer-preview
--- ----
However, in contrast to `component add clippy` or `component add rustfmt`, this does not actually place a `rust-analyzer` binary in `~/.cargo/bin`, see https://github.com/rust-lang/rustup/issues/2411[this issue].
==== Arch Linux ==== Arch Linux