diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-17 23:01:54 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-17 23:01:54 +0000 |
commit | 585eef1d8c79e24b7788363cf3a5bc7c9c3bc963 (patch) | |
tree | 1f011539525108a10f36fdcde151d294c78db1c0 /docs | |
parent | 326556b09078a398e641dd221ab870ee0fe47f68 (diff) | |
parent | e29dbdb139fb3a35902b4b3d11a92d45861d210b (diff) |
Merge #3206
3206: Install rust-src when it is not found r=SomeoneToIgnore a=SomeoneToIgnore
Closes https://github.com/rust-analyzer/rust-analyzer/issues/2858
Looks like there's no RUSTUP env variable, so it adds one more thing to solve in https://github.com/rust-analyzer/rust-analyzer/issues/3154
Co-authored-by: Kirill Bulatov <[email protected]>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user/readme.adoc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/user/readme.adoc b/docs/user/readme.adoc index 57a8cbe31..8780a2995 100644 --- a/docs/user/readme.adoc +++ b/docs/user/readme.adoc | |||
@@ -20,7 +20,9 @@ In theory, one should be able to just install the server binary and have it auto | |||
20 | We are not there yet, so some editor specific setup is required. | 20 | We are not there yet, so some editor specific setup is required. |
21 | 21 | ||
22 | Additionally, rust-analyzer needs sources of the standard library. | 22 | Additionally, rust-analyzer needs sources of the standard library. |
23 | This commands adds them: | 23 | If the source code is not present, rust-analyzer will attempt to install it automatically. |
24 | |||
25 | To add the sources manually, run the following command: | ||
24 | 26 | ||
25 | ```bash | 27 | ```bash |
26 | $ rustup component add rust-src | 28 | $ rustup component add rust-src |