Skip to content

Commit cdf36fa

Browse files
authored
Merge pull request #1136 from scuellar/update_doc_folder_change
Just update docs to reflect new location of rust source.
2 parents 3bcf543 + c8516d5 commit cdf36fa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ As mentioned in the command output, don't forget to add the installation directo
4747

4848
1. Fetch the Rust sourcecode
4949

50-
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/src`. Rustup will keep the sources in sync with the toolchain if you run `rustup update`.
50+
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`.
5151

5252
2. manually from git: https://github.com/rust-lang/rust
5353

src/racer/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,23 +419,23 @@ impl fmt::Display for RustSrcPathError {
419419
f,
420420
"RUST_SRC_PATH environment variable must be set to \
421421
point to the src directory of a rust checkout. \
422-
E.g. \"/home/foouser/src/rust/src\""
422+
E.g. \"/home/foouser/src/rust/library\" (or \"/home/foouser/src/rust/src\" in older toolchains)"
423423
),
424424
RustSrcPathError::DoesNotExist(ref path) => write!(
425425
f,
426426
"racer can't find the directory pointed to by the \
427427
RUST_SRC_PATH variable \"{:?}\". Try using an \
428428
absolute fully qualified path and make sure it \
429429
points to the src directory of a rust checkout - \
430-
e.g. \"/home/foouser/src/rust/src\".",
430+
e.g. \"/home/foouser/src/rust/library\" (or \"/home/foouser/src/rust/src\" in older toolchains).",
431431
path
432432
),
433433
RustSrcPathError::NotRustSourceTree(ref path) => write!(
434434
f,
435435
"Unable to find libstd under RUST_SRC_PATH. N.B. \
436436
RUST_SRC_PATH variable needs to point to the *src* \
437437
directory inside a rust checkout e.g. \
438-
\"/home/foouser/src/rust/src\". \
438+
\"/home/foouser/src/rust/library\" (or \"/home/foouser/src/rust/src\" in older toolchains). \
439439
Current value \"{:?}\"",
440440
path
441441
),

0 commit comments

Comments
 (0)