@@ -10,10 +10,7 @@ use std::path::PathBuf;
1010use thiserror:: Error as ThisError ;
1111use url:: Url ;
1212
13- use crate :: {
14- currentprocess:: process,
15- dist:: dist:: { TargetTriple , ToolchainDesc } ,
16- } ;
13+ use crate :: dist:: dist:: { TargetTriple , ToolchainDesc } ;
1714use crate :: {
1815 dist:: manifest:: { Component , Manifest } ,
1916 toolchain:: names:: { PathBasedToolchainName , ToolchainName } ,
@@ -92,11 +89,10 @@ pub enum RustupError {
9289 #[ error( "path '{0}' not found" ) ]
9390 PathToolchainNotInstalled ( PathBasedToolchainName ) ,
9491 #[ error(
95- "rustup could not choose a version of {} to run, because one wasn't specified explicitly, and no default is configured.\n {}" ,
96- process( ) . name( ) . unwrap_or_else( || "Rust" . into( ) ) ,
92+ "rustup could not choose a version of {0} to run, because one wasn't specified explicitly, and no default is configured.\n {}" ,
9793 "help: run 'rustup default stable' to download the latest stable release of Rust and set it as your default toolchain."
9894 ) ]
99- ToolchainNotSelected ,
95+ ToolchainNotSelected ( String ) ,
10096 #[ error( "toolchain '{}' does not contain component {}{}{}" , . desc, . component, suggest_message( . suggestion) , if . component. contains( "rust-std" ) {
10197 format!( "\n note: not all platforms have the standard library pre-compiled: https://doc.rust-lang.org/nightly/rustc/platform-support.html{}" ,
10298 if desc. channel == "nightly" { "\n help: consider using `cargo build -Z build-std` instead" } else { "" }
0 commit comments