Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just update docs to reflect new location of rust source. #1136

Merged
merged 2 commits into from
Oct 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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