diff options
| author | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-08-09 01:03:45 +0300 |
|---|---|---|
| committer | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-08-10 14:32:56 +0300 |
| commit | 2babab6e438277a7a2644ee2994ae50c2393ccb1 (patch) | |
| tree | edd21cd85ba7f118cac843dd7016de6873aa6d33 | |
| parent | cbae581bb0c9d4f0b25e744ca2e4608ff615dd4c (diff) | |
| download | rust-2babab6e438277a7a2644ee2994ae50c2393ccb1.tar.gz rust-2babab6e438277a7a2644ee2994ae50c2393ccb1.zip | |
rustc_lint: remove some redundant `#[allow(rustc::untranslatable_diagnostic)]`
| -rw-r--r-- | compiler/rustc_lint/src/levels.rs | 2 |
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()); |
