Skip to content

Commit f6e3a87

Browse files
committed
Auto merge of #14914 - mashuler:fix-rustup-installation-description, r=lnicola
Fix rustup installation description While going through the process of installing rust-analyzer to use with Neovim, I noticed that the instructions for installing with rustup are incorrect now that [issue #2411](rust-lang/rustup#2411) has been closed. Now when rust-analyzer is installed using rustup, it is installed in ~/.cargo/bin and a symlink or some other workaround is no longer needed. I have updated the documentation accordingly.
2 parents 1b5523a + 05d63ef commit f6e3a87

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

docs/user/manual.adoc

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ $ cargo xtask install --server
172172
If your editor can't find the binary even though the binary is on your `$PATH`, the likely explanation is that it doesn't see the same `$PATH` as the shell, see https://github.com/rust-lang/rust-analyzer/issues/1811[this issue].
173173
On Unix, running the editor from a shell or changing the `.desktop` file to set the environment should help.
174174

175-
==== `rustup`
175+
==== rustup
176176

177177
`rust-analyzer` is available in `rustup`:
178178

@@ -181,19 +181,6 @@ On Unix, running the editor from a shell or changing the `.desktop` file to set
181181
$ rustup component add rust-analyzer
182182
----
183183

184-
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]. You can find the path to the binary using:
185-
[source,bash]
186-
----
187-
$ rustup which --toolchain stable rust-analyzer
188-
----
189-
You can link to there from `~/.cargo/bin` or configure your editor to use the full path.
190-
191-
Alternatively you might be able to configure your editor to start `rust-analyzer` using the command:
192-
[source,bash]
193-
----
194-
$ rustup run stable rust-analyzer
195-
----
196-
197184
==== Arch Linux
198185

199186
The `rust-analyzer` binary can be installed from the repos or AUR (Arch User Repository):

0 commit comments

Comments
 (0)