We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a738acd + 3b95226 commit 65088d6Copy full SHA for 65088d6
src/bin/rustup-init.rs
@@ -28,7 +28,7 @@ use rustup::cli::setup_mode;
28
use rustup::currentprocess::{process, with, OSProcess};
29
use rustup::env_var::RUST_RECURSION_COUNT_MAX;
30
use rustup::utils::utils;
31
-use rustup::TOOLS;
+use rustup::{TOOLS, DUP_TOOLS};
32
33
fn main() {
34
let process = OSProcess::default();
@@ -94,7 +94,7 @@ fn run_rustup_inner() -> Result<utils::ExitCode> {
94
}
95
96
Some(n) => {
97
- if TOOLS.iter().find(|&&name| name == n).is_some() {
+ if TOOLS.iter().chain(DUP_TOOLS.iter()).find(|&&name| name == n).is_some() {
98
proxy_mode::main()
99
} else {
100
Err(ErrorKind::UnknownProxyName(n.to_string()).into())
0 commit comments