@@ -20,7 +20,7 @@ pub enum Profile {
2020 Codegen ,
2121 Library ,
2222 Tools ,
23- Dist ,
23+ User ,
2424 None ,
2525}
2626
@@ -43,7 +43,7 @@ impl Profile {
4343 pub fn all ( ) -> impl Iterator < Item = Self > {
4444 use Profile :: * ;
4545 // N.B. these are ordered by how they are displayed, not alphabetically
46- [ Library , Compiler , Codegen , Tools , Dist , None ] . iter ( ) . copied ( )
46+ [ Library , Compiler , Codegen , Tools , User , None ] . iter ( ) . copied ( )
4747 }
4848
4949 pub fn purpose ( & self ) -> String {
@@ -53,7 +53,7 @@ impl Profile {
5353 Compiler => "Contribute to the compiler itself" ,
5454 Codegen => "Contribute to the compiler, and also modify LLVM or codegen" ,
5555 Tools => "Contribute to tools which depend on the compiler, but do not modify it directly (e.g. rustdoc, clippy, miri)" ,
56- Dist => "Install Rust from source" ,
56+ User => "Install Rust from source" ,
5757 None => "Do not modify `config.toml`"
5858 }
5959 . to_string ( )
@@ -73,7 +73,7 @@ impl Profile {
7373 Profile :: Codegen => "codegen" ,
7474 Profile :: Library => "library" ,
7575 Profile :: Tools => "tools" ,
76- Profile :: Dist => "dist " ,
76+ Profile :: User => "user " ,
7777 Profile :: None => "none" ,
7878 }
7979 }
@@ -87,7 +87,7 @@ impl FromStr for Profile {
8787 "lib" | "library" => Ok ( Profile :: Library ) ,
8888 "compiler" => Ok ( Profile :: Compiler ) ,
8989 "llvm" | "codegen" => Ok ( Profile :: Codegen ) ,
90- "maintainer" | "dist " => Ok ( Profile :: Dist ) ,
90+ "maintainer" | "user " => Ok ( Profile :: User ) ,
9191 "tools" | "tool" | "rustdoc" | "clippy" | "miri" | "rustfmt" | "rls" => {
9292 Ok ( Profile :: Tools )
9393 }
@@ -160,7 +160,7 @@ pub fn setup(config: &Config, profile: Profile) {
160160 "test src/tools/rustfmt" ,
161161 ] ,
162162 Profile :: Library => & [ "check" , "build" , "test library/std" , "doc" ] ,
163- Profile :: Dist => & [ "dist" , "build" ] ,
163+ Profile :: User => & [ "dist" , "build" ] ,
164164 } ;
165165
166166 println ! ( ) ;
@@ -170,7 +170,7 @@ pub fn setup(config: &Config, profile: Profile) {
170170 println ! ( "- `x.py {}`" , cmd) ;
171171 }
172172
173- if profile != Profile :: Dist {
173+ if profile != Profile :: User {
174174 println ! (
175175 "For more suggestions, see https://rustc-dev-guide.rust-lang.org/building/suggested.html"
176176 ) ;
0 commit comments