From 3bb13fc5fc3d4d734a4a4abd7dd43525f239db07 Mon Sep 17 00:00:00 2001 From: Leonardo Dutra Date: Sun, 25 Oct 2020 02:54:22 -0300 Subject: [PATCH] Update README.md to use **/src/rust/library `RUST_SRC_PATH` last folder was renamed from `/src` to `/library`. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 51533f19..2c87250a 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ As mentioned in the command output, don't forget to add the installation directo 1. Fetch the Rust sourcecode - 1. automatically via [rustup](https://www.rustup.rs/) and run `rustup component add rust-src` in order to install the source to `$(rustc --print sysroot)/lib/rustlib/src/rust/library` (or `$(rustc --print sysroot)/lib/rustlib/src/rust/src` in older toolchains). Rustup will keep the sources in sync with the toolchain if you run `rustup update`. + 1. automatically via [rustup](https://www.rustup.rs/) and run `rustup component add rust-src` in order to install the source to `$(rustc --print sysroot)/lib/rustlib/src/rust/library` (or `$(rustc --print sysroot)/lib/rustlib/src/rust/library` in older toolchains). Rustup will keep the sources in sync with the toolchain if you run `rustup update`. 2. manually from git: https://github.com/rust-lang/rust @@ -62,7 +62,7 @@ As mentioned in the command output, don't forget to add the installation directo `rustup component add rust-src` 2. (Optional) Set `RUST_SRC_PATH` environment variable to point to the 'src' dir in the Rust source installation - e.g. `% export RUST_SRC_PATH=/usr/local/src/rust/src` or `% export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"` + e.g. `% export RUST_SRC_PATH=/usr/local/src/rust/library` or `% export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/library"` It's recommended to set `RUST_SRC_PATH` for speed up, but racer detects it automatically if you don't set it.