rust-clippy/setup-toolchain.sh

16 lines
436 B
Bash
Raw Normal View History

#!/bin/bash
# Set up the appropriate rustc toolchain
2019-10-11 15:53:55 +07:00
cd "$(dirname "$0")" || exit
if ! command -v rustup-toolchain-install-master > /dev/null; then
2019-10-12 10:18:31 +07:00
cargo install \
2019-10-14 00:47:36 +07:00
--git https://github.com/lzutao/rustup-toolchain-install-master \
--rev c44dbf920b644000ac3ba01184cbb1a01bb91519 \
2019-10-12 10:18:31 +07:00
--bin rustup-toolchain-install-master \
--debug
fi
2019-10-11 15:53:55 +07:00
rustup-toolchain-install-master -f -n master -c rustc-dev
rustup override set master