# HG changeset patch # User Augie Fackler # Date 1475938078 14400 # Node ID c19013b9b1d96cac5b5d1d943e66e72deaa09d50 # Parent 57876a8a81657f30cef84dca71943c568f22008a rust: automatically discover the rust sources installed by rustup diff --git a/.shell.d/99.rust.sh b/.shell.d/99.rust.sh --- 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"