Skip to content

Commit 0797ffe

Browse files
committed
Deny internal lints for rustdoc
1 parent a194881 commit 0797ffe

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/bootstrap/check.rs

+7
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,13 @@ macro_rules! tool_check_step {
320320
cargo.arg("--all-targets");
321321
}
322322

323+
// 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+
}
329+
323330
builder.info(&format!(
324331
"Checking stage{} {} artifacts ({} -> {})",
325332
builder.top_stage,

src/librustdoc/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#![feature(str_split_once)]
1919
#![feature(iter_intersperse)]
2020
#![recursion_limit = "256"]
21+
#![deny(rustc::internal)]
2122

2223
#[macro_use]
2324
extern crate lazy_static;

0 commit comments

Comments
 (0)