Deny internal lints for rustdoc

This commit is contained in:
Joshua Nelson 2021-01-21 22:51:58 -05:00
parent a194881991
commit 0797ffec09
2 changed files with 8 additions and 0 deletions

View File

@ -320,6 +320,13 @@ macro_rules! tool_check_step {
cargo.arg("--all-targets");
}
// 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");
}
builder.info(&format!(
"Checking stage{} {} artifacts ({} -> {})",
builder.top_stage,

View File

@ -18,6 +18,7 @@
#![feature(str_split_once)]
#![feature(iter_intersperse)]
#![recursion_limit = "256"]
#![deny(rustc::internal)]
#[macro_use]
extern crate lazy_static;