Skip to content

Commit 264442c

Browse files
committed
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)`.
1 parent 7f4afdf commit 264442c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/bootstrap/check.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -321,11 +321,9 @@ macro_rules! tool_check_step {
321321
}
322322

323323
// Enable internal lints for clippy and rustdoc
324-
// NOTE: this intentionally doesn't enable lints for any other tools,
325-
// see https://github.com/rust-lang/rust/pull/80573#issuecomment-754010776
326-
if $path == "src/tools/rustdoc" || $path == "src/tools/clippy" {
327-
cargo.rustflag("-Zunstable-options");
328-
}
324+
// NOTE: this doesn't enable lints for any other tools unless they explicitly add `#![deny(rustc::internal)]`
325+
// See https://github.com/rust-lang/rust/pull/80573#issuecomment-754010776
326+
cargo.rustflag("-Zunstable-options");
329327

330328
builder.info(&format!(
331329
"Checking stage{} {} artifacts ({} -> {})",

0 commit comments

Comments
 (0)