We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a194881 commit 0797ffeCopy full SHA for 0797ffe
src/bootstrap/check.rs
@@ -320,6 +320,13 @@ macro_rules! tool_check_step {
320
cargo.arg("--all-targets");
321
}
322
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
+
330
builder.info(&format!(
331
"Checking stage{} {} artifacts ({} -> {})",
332
builder.top_stage,
src/librustdoc/lib.rs
@@ -18,6 +18,7 @@
18
#![feature(str_split_once)]
19
#![feature(iter_intersperse)]
20
#![recursion_limit = "256"]
21
+#![deny(rustc::internal)]
22
23
#[macro_use]
24
extern crate lazy_static;
0 commit comments