Skip to content

Commit d27b033

Browse files
Merge #2504
2504: Use rustup toolchain install instead of rustup install r=matklad a=edwin0cheng `rustup install` and `rustup uninstall` are going to be deprecated in rustup 1.21.0 See rust-lang/rustup#2148 and https://www.reddit.com/r/rust/comments/e7rer9/we_need_your_help_before_rustup_1210_can_be/ Co-authored-by: Edwin Cheng <[email protected]>
2 parents 596e6db + 74c7c7a commit d27b033

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xtask/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub fn run_rustfmt(mode: Mode) -> Result<()> {
7979
}
8080

8181
pub fn install_rustfmt() -> Result<()> {
82-
run(&format!("rustup install {}", TOOLCHAIN), ".")?;
82+
run(&format!("rustup toolchain install {}", TOOLCHAIN), ".")?;
8383
run(&format!("rustup component add rustfmt --toolchain {}", TOOLCHAIN), ".")
8484
}
8585

@@ -125,7 +125,7 @@ pub fn run_clippy() -> Result<()> {
125125
}
126126

127127
pub fn install_clippy() -> Result<()> {
128-
run(&format!("rustup install {}", TOOLCHAIN), ".")?;
128+
run(&format!("rustup toolchain install {}", TOOLCHAIN), ".")?;
129129
run(&format!("rustup component add clippy --toolchain {}", TOOLCHAIN), ".")
130130
}
131131

0 commit comments

Comments
 (0)