Skip to content

Commit 515ee70

Browse files
committed
Invert diagnostic lints.
That is, change `diagnostic_outside_of_impl` and `untranslatable_diagnostic` from `allow` to `deny`, because more than half of the compiler has be converted to use translated diagnostics. This commit removes more `deny` attributes than it adds `allow` attributes, which proves that this change is warranted.
1 parent b2ff123 commit 515ee70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#![cfg_attr(doc, doc(rust_logo))]
44
#![feature(rustc_private)]
55
// Note: please avoid adding other feature gates where possible
6+
#![allow(rustc::diagnostic_outside_of_impl)]
7+
#![allow(rustc::untranslatable_diagnostic)]
68
#![warn(rust_2018_idioms)]
79
#![warn(unused_lifetimes)]
810
#![warn(unreachable_pub)]

0 commit comments

Comments
 (0)