diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-06 09:51:39 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-06 13:12:33 +1100 |
| commit | 515ee70efa93bb9ba5ca2b1bd269fdc6e9571eae (patch) | |
| tree | 8c41a8488b5e5088b0f00f3bfa65f2392dc5c92b /src | |
| parent | b2ff1231dd335a5752acd560bc0c8dbfb2484366 (diff) | |
| download | rust-515ee70efa93bb9ba5ca2b1bd269fdc6e9571eae.tar.gz rust-515ee70efa93bb9ba5ca2b1bd269fdc6e9571eae.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index 416f87fcc87..7c432e9c590 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,6 +3,8 @@ #![cfg_attr(doc, doc(rust_logo))] #![feature(rustc_private)] // Note: please avoid adding other feature gates where possible +#![allow(rustc::diagnostic_outside_of_impl)] +#![allow(rustc::untranslatable_diagnostic)] #![warn(rust_2018_idioms)] #![warn(unused_lifetimes)] #![warn(unreachable_pub)] |
