]> git.lizzy.rs Git - rust.git/blob - setup-toolchain.sh
rustup https://github.com/rust-lang/rust/pull/61836/
[rust.git] / setup-toolchain.sh
1 #!/bin/bash
2 # Set up the appropriate rustc toolchain
3
4 cd "$(dirname "$0")"
5
6 if ! command -v rustup-toolchain-install-master > /dev/null; then
7   cargo install rustup-toolchain-install-master --debug
8 fi
9
10 RUSTC_HASH=$(git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}')
11 rustup-toolchain-install-master -f -n master "$RUSTC_HASH"
12 rustup override set master