File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff line change 1818#![ feature( str_split_once) ]
1919#![ feature( iter_intersperse) ]
2020#![ recursion_limit = "256" ]
21+ #![ deny( rustc:: internal) ]
2122
2223#[ macro_use]
2324extern crate lazy_static;
You can’t perform that action at this time.
0 commit comments