rust-clippy/setup-toolchain.sh

14 lines
354 B
Bash
Raw Normal View History

#!/bin/bash
# Set up the appropriate rustc toolchain
2019-10-14 17:51:41 +00:00
set -e
cd "$(dirname "$0")"
if [[ "$CI" == true ]] || ! command -v rustup-toolchain-install-master > /dev/null; then
cargo install -Z install-upgrade rustup-toolchain-install-master --bin rustup-toolchain-install-master
fi
2019-10-14 03:25:05 +00:00
rustup-toolchain-install-master -f -n master
rustup override set master