Skip to content

Commit 55b3231

Browse files
authored
Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davidtwco
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 been converted to use translated diagnostics. This commit removes more `deny` attributes than it adds `allow` attributes, which proves that this change is warranted. r? ````@davidtwco````
2 parents d631662 + 515ee70 commit 55b3231

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

+2
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)