@@ -20,7 +20,7 @@ pub enum Profile {
2020 Codegen ,
2121 Library ,
2222 Tools ,
23- User ,
23+ Dist ,
2424 None ,
2525}
2626
@@ -42,7 +42,7 @@ impl Profile {
4242 pub fn all ( ) -> impl Iterator < Item = Self > {
4343 use Profile :: * ;
4444 // N.B. these are ordered by how they are displayed, not alphabetically
45- [ Library , Compiler , Codegen , Tools , User , None ] . iter ( ) . copied ( )
45+ [ Library , Compiler , Codegen , Tools , Dist , None ] . iter ( ) . copied ( )
4646 }
4747
4848 pub fn purpose ( & self ) -> String {
@@ -52,7 +52,7 @@ impl Profile {
5252 Compiler => "Contribute to the compiler itself" ,
5353 Codegen => "Contribute to the compiler, and also modify LLVM or codegen" ,
5454 Tools => "Contribute to tools which depend on the compiler, but do not modify it directly (e.g. rustdoc, clippy, miri)" ,
55- User => "Install Rust from source" ,
55+ Dist => "Install Rust from source" ,
5656 None => "Do not modify `config.toml`"
5757 }
5858 . to_string ( )
@@ -72,7 +72,7 @@ impl Profile {
7272 Profile :: Codegen => "codegen" ,
7373 Profile :: Library => "library" ,
7474 Profile :: Tools => "tools" ,
75- Profile :: User => "user " ,
75+ Profile :: Dist => "dist " ,
7676 Profile :: None => "none" ,
7777 }
7878 }
@@ -86,7 +86,7 @@ impl FromStr for Profile {
8686 "lib" | "library" => Ok ( Profile :: Library ) ,
8787 "compiler" => Ok ( Profile :: Compiler ) ,
8888 "llvm" | "codegen" => Ok ( Profile :: Codegen ) ,
89- "maintainer" | "user " => Ok ( Profile :: User ) ,
89+ "maintainer" | "dist " => Ok ( Profile :: Dist ) ,
9090 "tools" | "tool" | "rustdoc" | "clippy" | "miri" | "rustfmt" | "rls" => {
9191 Ok ( Profile :: Tools )
9292 }
@@ -159,7 +159,7 @@ pub fn setup(config: &Config, profile: Profile) {
159159 "test src/tools/rustfmt" ,
160160 ] ,
161161 Profile :: Library => & [ "check" , "build" , "test library/std" , "doc" ] ,
162- Profile :: User => & [ "dist" , "build" ] ,
162+ Profile :: Dist => & [ "dist" , "build" ] ,
163163 } ;
164164
165165 println ! ( ) ;
@@ -169,7 +169,7 @@ pub fn setup(config: &Config, profile: Profile) {
169169 println ! ( "- `x.py {}`" , cmd) ;
170170 }
171171
172- if profile != Profile :: User {
172+ if profile != Profile :: Dist {
173173 println ! (
174174 "For more suggestions, see https://rustc-dev-guide.rust-lang.org/building/suggested.html"
175175 ) ;
0 commit comments