]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #1111 - MarkusPettersson98:rustup-1.21-yaml, r=RalfJung
authorbors <bors@rust-lang.org>
Sun, 8 Dec 2019 13:37:35 +0000 (13:37 +0000)
committerbors <bors@rust-lang.org>
Sun, 8 Dec 2019 13:37:35 +0000 (13:37 +0000)
Updated CI config to reflect deprecation of rustup uninstall

In the same spirit as #1110 ðŸ˜„

This PR from the rustup repository brought me here: https://github.com/rust-lang/rustup/issues/2148

TL;DR With rustup 1.21.0 `rustup install` and `rustup uninstall` are being deprecated in favor of `rustup toolchain install` and `rustup toolchain uninstall`. There's plenty of code/documentation out there that needs to be updated to reflect this.

Thought It would be cool to help, however small the change may be. :)

Keep up the great work!

.appveyor.yml
.travis.yml

index b9e112aa08608bf9e8708757c6e92cc9598c750f..16fd20c9da616d280a47789e3ed429c044ddd41f 100644 (file)
@@ -27,7 +27,7 @@ install:
     - rustup-init.exe -y --default-host %TARGET% --default-toolchain stable --profile minimal
     - set PATH=%USERPROFILE%\.cargo\bin;%PATH%
     - rustup default stable
-    - rustup uninstall beta
+    - rustup toolchain uninstall beta
     - rustup update
     # Install "master" toolchain
     - cargo install rustup-toolchain-install-master & exit 0
index a080ab55b94f2326d2aef074e8b26c183dbe84fb..cbb7c69db1cdfc089ab6107905c49962c6f0f36f 100644 (file)
@@ -34,7 +34,7 @@ before_script:
 - curl https://build.travis-ci.org/files/rustup-init.sh -sSf | sh -s -- -y --default-toolchain stable --profile minimal
 - export PATH=$HOME/.cargo/bin:$PATH
 - rustup default stable
-- rustup uninstall beta
+- rustup toolchain uninstall beta
 - rustup update
 # Install "master" toolchain
 - cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"