about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2021-04-28 22:59:22 -0400
committerGitHub <noreply@github.com>2021-04-28 22:59:22 -0400
commit43afe764dea3f3a8c0562c0f85c1cdcc59267cab (patch)
treeec074ab220ef6f13169f91856d4a50052df41680 /src/bootstrap
parent50ca3ac24f08cc6c8bbef9ac27245f83f30bc749 (diff)
parent1c8e12217704c3290bfb05f0f75688b6a7849e75 (diff)
downloadrust-43afe764dea3f3a8c0562c0f85c1cdcc59267cab.tar.gz
rust-43afe764dea3f3a8c0562c0f85c1cdcc59267cab.zip
Rollup merge of #84484 - jyn514:check-tools, r=Mark-Simulacrum
Don't rebuild rustdoc and clippy 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)`.

Fixes https://github.com/rust-lang/rust/issues/82461.

r? ```@Mark-Simulacrum```
Diffstat (limited to 'src/bootstrap')
-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..38dda5b744e 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 `#![warn(rustc::internal)]`
+                // See https://github.com/rust-lang/rust/pull/80573#issuecomment-754010776
+                cargo.rustflag("-Zunstable-options");
 
                 builder.info(&format!(
                     "Checking stage{} {} artifacts ({} -> {})",