Skip to content

Commit 2babab6

Browse files
committed
rustc_lint: remove some redundant #[allow(rustc::untranslatable_diagnostic)]
1 parent cbae581 commit 2babab6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler/rustc_lint/src/levels.rs

-2
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
717717
};
718718
}
719719

720-
#[allow(rustc::untranslatable_diagnostic)] // FIXME: make this translatable
721720
fn add(&mut self, attrs: &[ast::Attribute], is_crate_node: bool, source_hir_id: Option<HirId>) {
722721
let sess = self.sess;
723722
for (attr_index, attr) in attrs.iter().enumerate() {
@@ -1039,7 +1038,6 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
10391038
let (level, src) = self.lint_level(builtin::UNKNOWN_LINTS);
10401039
// FIXME: make this translatable
10411040
#[allow(rustc::diagnostic_outside_of_impl)]
1042-
#[allow(rustc::untranslatable_diagnostic)]
10431041
lint_level(self.sess, lint, level, src, Some(span.into()), |lint| {
10441042
lint.primary_message(fluent::lint_unknown_gated_lint);
10451043
lint.arg("name", lint_id.lint.name_lower());

0 commit comments

Comments
 (0)