@@ -10,10 +10,7 @@ use std::path::PathBuf;
10
10
use thiserror:: Error as ThisError ;
11
11
use url:: Url ;
12
12
13
- use crate :: {
14
- currentprocess:: process,
15
- dist:: dist:: { TargetTriple , ToolchainDesc } ,
16
- } ;
13
+ use crate :: dist:: dist:: { TargetTriple , ToolchainDesc } ;
17
14
use crate :: {
18
15
dist:: manifest:: { Component , Manifest } ,
19
16
toolchain:: names:: { PathBasedToolchainName , ToolchainName } ,
@@ -92,11 +89,10 @@ pub enum RustupError {
92
89
#[ error( "path '{0}' not found" ) ]
93
90
PathToolchainNotInstalled ( PathBasedToolchainName ) ,
94
91
#[ 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 {}" ,
97
93
"help: run 'rustup default stable' to download the latest stable release of Rust and set it as your default toolchain."
98
94
) ]
99
- ToolchainNotSelected ,
95
+ ToolchainNotSelected ( String ) ,
100
96
#[ error( "toolchain '{}' does not contain component {}{}{}" , . desc, . component, suggest_message( . suggestion) , if . component. contains( "rust-std" ) {
101
97
format!( "\n note: not all platforms have the standard library pre-compiled: https://doc.rust-lang.org/nightly/rustc/platform-support.html{}" ,
102
98
if desc. channel == "nightly" { "\n help: consider using `cargo build -Z build-std` instead" } else { "" }
0 commit comments