about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPavel Grigorenko <GrigorenkoPV@ya.ru>2024-08-09 01:03:45 +0300
committerPavel Grigorenko <GrigorenkoPV@ya.ru>2024-08-10 14:32:56 +0300
commit2babab6e438277a7a2644ee2994ae50c2393ccb1 (patch)
treeedd21cd85ba7f118cac843dd7016de6873aa6d33
parentcbae581bb0c9d4f0b25e744ca2e4608ff615dd4c (diff)
downloadrust-2babab6e438277a7a2644ee2994ae50c2393ccb1.tar.gz
rust-2babab6e438277a7a2644ee2994ae50c2393ccb1.zip
rustc_lint: remove some redundant `#[allow(rustc::untranslatable_diagnostic)]`
-rw-r--r--compiler/rustc_lint/src/levels.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/levels.rs b/compiler/rustc_lint/src/levels.rs
index 72920fd045f..44117e5d7a5 100644
--- a/compiler/rustc_lint/src/levels.rs
+++ b/compiler/rustc_lint/src/levels.rs
@@ -717,7 +717,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
         };
     }
 
-    #[allow(rustc::untranslatable_diagnostic)] // FIXME: make this translatable
     fn add(&mut self, attrs: &[ast::Attribute], is_crate_node: bool, source_hir_id: Option<HirId>) {
         let sess = self.sess;
         for (attr_index, attr) in attrs.iter().enumerate() {
@@ -1039,7 +1038,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
             let (level, src) = self.lint_level(builtin::UNKNOWN_LINTS);
             // FIXME: make this translatable
             #[allow(rustc::diagnostic_outside_of_impl)]
-            #[allow(rustc::untranslatable_diagnostic)]
             lint_level(self.sess, lint, level, src, Some(span.into()), |lint| {
                 lint.primary_message(fluent::lint_unknown_gated_lint);
                 lint.arg("name", lint_id.lint.name_lower());