Skip to content

Commit

Permalink
Merge pull request #1136 from scuellar/update_doc_folder_change
Browse files Browse the repository at this point in the history
Just update docs to reflect new location of rust source.
  • Loading branch information
kngwyu authored Oct 18, 2020
2 parents 3bcf543 + c8516d5 commit cdf36fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/src`. 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/src` 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

Expand Down
6 changes: 3 additions & 3 deletions src/racer/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,23 +419,23 @@ impl fmt::Display for RustSrcPathError {
f,
"RUST_SRC_PATH environment variable must be set to \
point to the src directory of a rust checkout. \
E.g. \"/home/foouser/src/rust/src\""
E.g. \"/home/foouser/src/rust/library\" (or \"/home/foouser/src/rust/src\" in older toolchains)"
),
RustSrcPathError::DoesNotExist(ref path) => write!(
f,
"racer can't find the directory pointed to by the \
RUST_SRC_PATH variable \"{:?}\". Try using an \
absolute fully qualified path and make sure it \
points to the src directory of a rust checkout - \
e.g. \"/home/foouser/src/rust/src\".",
e.g. \"/home/foouser/src/rust/library\" (or \"/home/foouser/src/rust/src\" in older toolchains).",
path
),
RustSrcPathError::NotRustSourceTree(ref path) => write!(
f,
"Unable to find libstd under RUST_SRC_PATH. N.B. \
RUST_SRC_PATH variable needs to point to the *src* \
directory inside a rust checkout e.g. \
\"/home/foouser/src/rust/src\". \
\"/home/foouser/src/rust/library\" (or \"/home/foouser/src/rust/src\" in older toolchains). \
Current value \"{:?}\"",
path
),
Expand Down

0 comments on commit cdf36fa

Please sign in to comment.