summary refs log tree commit diff
path: root/compiler/rustc_middle/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-09 14:41:50 +0100
committerGitHub <noreply@github.com>2024-02-09 14:41:50 +0100
commit46a0448405732b09d19e4ed53606bed240f882fa (patch)
treeedc8cbb4249c3a7da6e533f3c3d9c4134eae0cbd /compiler/rustc_middle/src/lib.rs
parent8b8adfd05d84595b448b079d76be865a3c8cb5bd (diff)
parent0ac1195ee0f8cd6d87e654a2312b899883272ec2 (diff)
downloadrust-46a0448405732b09d19e4ed53606bed240f882fa.tar.gz
rust-46a0448405732b09d19e4ed53606bed240f882fa.zip
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````
Diffstat (limited to 'compiler/rustc_middle/src/lib.rs')
-rw-r--r--compiler/rustc_middle/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/lib.rs b/compiler/rustc_middle/src/lib.rs
index 9f1609a5595..56b97f9f963 100644
--- a/compiler/rustc_middle/src/lib.rs
+++ b/compiler/rustc_middle/src/lib.rs
@@ -58,8 +58,10 @@
 #![feature(const_option)]
 #![feature(ptr_alignment_type)]
 #![feature(macro_metavar_expr)]
-#![allow(rustc::potential_query_instability)]
 #![allow(internal_features)]
+#![allow(rustc::potential_query_instability)]
+#![allow(rustc::diagnostic_outside_of_impl)]
+#![allow(rustc::untranslatable_diagnostic)]
 
 #[macro_use]
 extern crate bitflags;