rust-clippy/setup-toolchain.sh
2019-10-12 10:18:31 +07:00

14 lines
384 B
Bash
Executable file

#!/bin/bash
# Set up the appropriate rustc toolchain
cd "$(dirname "$0")" || exit
if ! command -v rustup-toolchain-install-master > /dev/null; then
cargo install \
--git https://github.com/kennytm/rustup-toolchain-install-master \
--bin rustup-toolchain-install-master \
--debug
fi
rustup-toolchain-install-master -f -n master -c rustc-dev
rustup override set master