Skip to content

Commit 1c8e122

Browse files
committed
Switch rustc::internal from deny to warn
These should still obey deny-warnings.
1 parent 264442c commit 1c8e122

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/bootstrap/check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ macro_rules! tool_check_step {
321321
}
322322

323323
// Enable internal lints for clippy and rustdoc
324-
// NOTE: this doesn't enable lints for any other tools unless they explicitly add `#![deny(rustc::internal)]`
324+
// NOTE: this doesn't enable lints for any other tools unless they explicitly add `#![warn(rustc::internal)]`
325325
// See https://github.com/rust-lang/rust/pull/80573#issuecomment-754010776
326326
cargo.rustflag("-Zunstable-options");
327327

src/librustdoc/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#![feature(type_ascription)]
1717
#![feature(iter_intersperse)]
1818
#![recursion_limit = "256"]
19-
#![deny(rustc::internal)]
19+
#![warn(rustc::internal)]
2020

2121
#[macro_use]
2222
extern crate lazy_static;

src/tools/clippy/clippy_lints/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// warn on lints, that are included in `rust-lang/rust`s bootstrap
1818
#![warn(rust_2018_idioms, unused_lifetimes)]
1919
// warn on rustc internal lints
20-
#![deny(rustc::internal)]
20+
#![warn(rustc::internal)]
2121

2222
// FIXME: switch to something more ergonomic here, once available.
2323
// (Currently there is no way to opt into sysroot crates without `extern crate`.)

src/tools/clippy/src/driver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// warn on lints, that are included in `rust-lang/rust`s bootstrap
55
#![warn(rust_2018_idioms, unused_lifetimes)]
66
// warn on rustc internal lints
7-
#![deny(rustc::internal)]
7+
#![warn(rustc::internal)]
88

99
// FIXME: switch to something more ergonomic here, once available.
1010
// (Currently there is no way to opt into sysroot crates without `extern crate`.)

0 commit comments

Comments
 (0)