changeset 418:c19013b9b1d9

rust: automatically discover the rust sources installed by rustup
author Augie Fackler <raf@durin42.com>
date Sat, 08 Oct 2016 10:47:58 -0400 (2016-10-08)
parents 57876a8a8165
children ced3c6a3e02a
files .shell.d/99.rust.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.shell.d/99.rust.sh
+++ b/.shell.d/99.rust.sh
@@ -1,2 +1,2 @@
 insert_path_element $HOME/.cargo/bin
-export RUST_SRC_PATH=$HOME/Programming/big/rust/src
+export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"