From 23c3356f9a6069f566e9f6900f5575daed1d526d Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Sat, 10 Oct 2020 09:55:35 -0400 Subject: [PATCH] Mention rustdoc in `x.py setup` This also allows 'rustdoc' as a string for the compiler profile. --- src/bootstrap/setup.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bootstrap/setup.rs b/src/bootstrap/setup.rs index dcfb9fd673421..f762dff2727f4 100644 --- a/src/bootstrap/setup.rs +++ b/src/bootstrap/setup.rs @@ -30,7 +30,7 @@ impl FromStr for Profile { fn from_str(s: &str) -> Result { 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)), @@ -107,7 +107,7 @@ pub fn interactive_path() -> io::Result { 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" );