Skip to content

Commit

Permalink
Mention rustdoc in x.py setup
Browse files Browse the repository at this point in the history
This also allows 'rustdoc' as a string for the compiler profile.
  • Loading branch information
jyn514 committed Oct 10, 2020
1 parent f1dab24 commit 23c3356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl FromStr for Profile {
fn from_str(s: &str) -> Result<Self, Self::Err> {
match s {
"a" | "lib" | "library" => Ok(Profile::Library),
"b" | "compiler" => Ok(Profile::Compiler),
"b" | "compiler" | "rustdoc" => Ok(Profile::Compiler),
"c" | "llvm" | "codegen" => Ok(Profile::Codegen),
"d" | "maintainer" | "user" => Ok(Profile::User),
_ => Err(format!("unknown profile: '{}'", s)),
Expand Down Expand Up @@ -107,7 +107,7 @@ pub fn interactive_path() -> io::Result<Profile> {
println!(
"Welcome to the Rust project! What do you want to do with x.py?
a) Contribute to the standard library
b) Contribute to the compiler
b) Contribute to the compiler or rustdoc
c) Contribute to the compiler, and also modify LLVM or codegen
d) Install Rust from source"
);
Expand Down

0 comments on commit 23c3356

Please sign in to comment.