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 {
320
320
cargo. arg( "--all-targets" ) ;
321
321
}
322
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
+
323
330
builder. info( & format!(
324
331
"Checking stage{} {} artifacts ({} -> {})" ,
325
332
builder. top_stage,
Original file line number Diff line number Diff line change 18
18
#![ feature( str_split_once) ]
19
19
#![ feature( iter_intersperse) ]
20
20
#![ recursion_limit = "256" ]
21
+ #![ deny( rustc:: internal) ]
21
22
22
23
#[ macro_use]
23
24
extern crate lazy_static;
You can’t perform that action at this time.
0 commit comments