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