@@ -20,7 +20,7 @@ pub enum Profile {
20
20
Codegen ,
21
21
Library ,
22
22
Tools ,
23
- User ,
23
+ Dist ,
24
24
None ,
25
25
}
26
26
@@ -42,7 +42,7 @@ impl Profile {
42
42
pub fn all ( ) -> impl Iterator < Item = Self > {
43
43
use Profile :: * ;
44
44
// 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 ( )
46
46
}
47
47
48
48
pub fn purpose ( & self ) -> String {
@@ -52,7 +52,7 @@ impl Profile {
52
52
Compiler => "Contribute to the compiler itself" ,
53
53
Codegen => "Contribute to the compiler, and also modify LLVM or codegen" ,
54
54
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" ,
56
56
None => "Do not modify `config.toml`"
57
57
}
58
58
. to_string ( )
@@ -72,7 +72,7 @@ impl Profile {
72
72
Profile :: Codegen => "codegen" ,
73
73
Profile :: Library => "library" ,
74
74
Profile :: Tools => "tools" ,
75
- Profile :: User => "user " ,
75
+ Profile :: Dist => "dist " ,
76
76
Profile :: None => "none" ,
77
77
}
78
78
}
@@ -86,7 +86,7 @@ impl FromStr for Profile {
86
86
"lib" | "library" => Ok ( Profile :: Library ) ,
87
87
"compiler" => Ok ( Profile :: Compiler ) ,
88
88
"llvm" | "codegen" => Ok ( Profile :: Codegen ) ,
89
- "maintainer" | "user " => Ok ( Profile :: User ) ,
89
+ "maintainer" | "dist " => Ok ( Profile :: Dist ) ,
90
90
"tools" | "tool" | "rustdoc" | "clippy" | "miri" | "rustfmt" | "rls" => {
91
91
Ok ( Profile :: Tools )
92
92
}
@@ -159,7 +159,7 @@ pub fn setup(config: &Config, profile: Profile) {
159
159
"test src/tools/rustfmt" ,
160
160
] ,
161
161
Profile :: Library => & [ "check" , "build" , "test library/std" , "doc" ] ,
162
- Profile :: User => & [ "dist" , "build" ] ,
162
+ Profile :: Dist => & [ "dist" , "build" ] ,
163
163
} ;
164
164
165
165
println ! ( ) ;
@@ -169,7 +169,7 @@ pub fn setup(config: &Config, profile: Profile) {
169
169
println ! ( "- `x.py {}`" , cmd) ;
170
170
}
171
171
172
- if profile != Profile :: User {
172
+ if profile != Profile :: Dist {
173
173
println ! (
174
174
"For more suggestions, see https://rustc-dev-guide.rust-lang.org/building/suggested.html"
175
175
) ;
0 commit comments