Skip to content

Commit 23c3356

Browse files
committed
Mention rustdoc in x.py setup
This also allows 'rustdoc' as a string for the compiler profile.
1 parent f1dab24 commit 23c3356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/setup.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl FromStr for Profile {
3030
fn from_str(s: &str) -> Result<Self, Self::Err> {
3131
match s {
3232
"a" | "lib" | "library" => Ok(Profile::Library),
33-
"b" | "compiler" => Ok(Profile::Compiler),
33+
"b" | "compiler" | "rustdoc" => Ok(Profile::Compiler),
3434
"c" | "llvm" | "codegen" => Ok(Profile::Codegen),
3535
"d" | "maintainer" | "user" => Ok(Profile::User),
3636
_ => Err(format!("unknown profile: '{}'", s)),
@@ -107,7 +107,7 @@ pub fn interactive_path() -> io::Result<Profile> {
107107
println!(
108108
"Welcome to the Rust project! What do you want to do with x.py?
109109
a) Contribute to the standard library
110-
b) Contribute to the compiler
110+
b) Contribute to the compiler or rustdoc
111111
c) Contribute to the compiler, and also modify LLVM or codegen
112112
d) Install Rust from source"
113113
);

0 commit comments

Comments
 (0)