about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-04-23 12:05:12 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-04-23 12:05:12 -0400
commit264442c140fb277f07b2d45a1fb0cef96e0a2caa (patch)
treec4b711c195c84b40d1a5024cf2adcbd607d973b3
parent7f4afdf0255600306bf67432da722c7b5d2cbf82 (diff)
downloadrust-264442c140fb277f07b2d45a1fb0cef96e0a2caa.tar.gz
rust-264442c140fb277f07b2d45a1fb0cef96e0a2caa.zip
Don't rebuild rustdoc after checking bootstrap
This works by unconditionally passing -Z unstable-options to the
compiler. This has no affect in practice since bootstrap doesn't use
`deny(rustc::internal)`.
-rw-r--r--src/bootstrap/check.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs
index 6626fead774..ca8ea63047b 100644
--- a/src/bootstrap/check.rs
+++ b/src/bootstrap/check.rs
@@ -321,11 +321,9 @@ macro_rules! tool_check_step {
                 }
 
                 // Enable internal lints for clippy and rustdoc
-                // NOTE: this intentionally doesn't enable lints for any other tools,
-                // see https://github.com/rust-lang/rust/pull/80573#issuecomment-754010776
-                if $path == "src/tools/rustdoc" || $path == "src/tools/clippy" {
-                    cargo.rustflag("-Zunstable-options");
-                }
+                // NOTE: this doesn't enable lints for any other tools unless they explicitly add `#![deny(rustc::internal)]`
+                // See https://github.com/rust-lang/rust/pull/80573#issuecomment-754010776
+                cargo.rustflag("-Zunstable-options");
 
                 builder.info(&format!(
                     "Checking stage{} {} artifacts ({} -> {})",