Skip to content

Commit

Permalink
Deny internal lints for rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Jan 22, 2021
1 parent a194881 commit 0797ffe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bootstrap/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/librustdoc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#![feature(str_split_once)]
#![feature(iter_intersperse)]
#![recursion_limit = "256"]
#![deny(rustc::internal)]

#[macro_use]
extern crate lazy_static;
Expand Down

0 comments on commit 0797ffe

Please sign in to comment.