Use azure condition for rust-src.

This commit is contained in:
Eric Huss 2019-08-11 12:22:05 -07:00
parent 0b051c757f
commit 3e82792c4f
1 changed files with 2 additions and 4 deletions

View File

@ -17,10 +17,8 @@ steps:
displayName: "Install clippy (maybe)"
# This is needed for standard library tests.
- bash: |
if [ "$TOOLCHAIN" = "nightly" ]; then
rustup component add rust-src
fi
- bash: rustup component add rust-src
condition: and(succeeded(), eq(variables['TOOLCHAIN'], 'nightly'))
displayName: "Install rust-src (maybe)"
# Deny warnings on CI to avoid warnings getting into the codebase, and note the