rust-clippy/setup-toolchain.sh

15 lines
384 B
Bash
Raw Normal View History

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