Fix location where rustup will install sources
The README currently claims that `rustup component add rust-src` will install sources in `~/.multirust/toolchains/[your-toolchain]/lib/rustlib/src/rust/src`. This is no longer true: sources are installed in `~/.rustup/toolchains/[your-toolchain]/lib/rustlib/src/rust/src`. It seems more robust to use `rustc --print sysroot`, however.
@@ -30,13 +30,13 @@ 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 `~/.multirust/toolchains/[your-toolchain]/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/src`. Rustup will keep the sources in sync with the toolchain if you run `rustup update`.
2. manually from git, or download from https://www.rust-lang.org/install.html (the 'rustc' source download behind the 'source' link is the right one).
2. Set the ```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=~/.multirust/toolchains/[your-toolchain]/lib/rustlib/src/rust/src``` )
+ (e.g. ```% export RUST_SRC_PATH=/usr/local/src/rust/src``` or ```% export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"``` )
3. Test on the command line:
