mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
Deny internal lints for rustdoc
This commit is contained in:
parent
a194881991
commit
0797ffec09
@ -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,
|
||||
|
@ -18,6 +18,7 @@
|
||||
#![feature(str_split_once)]
|
||||
#![feature(iter_intersperse)]
|
||||
#![recursion_limit = "256"]
|
||||
#![deny(rustc::internal)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
|
Loading…
Reference in New Issue
Block a user