rustc_expand: remove some redundant #[allow(rustc::untranslatable_diagnostic)]

This commit is contained in:
Pavel Grigorenko 2024-08-09 00:51:08 +03:00
parent f43cdcea22
commit fbc2459015
2 changed files with 0 additions and 3 deletions

View File

@ -1398,8 +1398,6 @@ fn pretty_printing_compatibility_hack(item: &Item, sess: &Session) {
}; };
if crate_matches { if crate_matches {
// FIXME: make this translatable
#[allow(rustc::untranslatable_diagnostic)]
sess.dcx().emit_fatal(errors::ProcMacroBackCompat { sess.dcx().emit_fatal(errors::ProcMacroBackCompat {
crate_name: "rental".to_string(), crate_name: "rental".to_string(),
fixed_version: "0.5.6".to_string(), fixed_version: "0.5.6".to_string(),

View File

@ -1876,7 +1876,6 @@ impl<'a, 'b> InvocationCollector<'a, 'b> {
// Detect use of feature-gated or invalid attributes on macro invocations // Detect use of feature-gated or invalid attributes on macro invocations
// since they will not be detected after macro expansion. // since they will not be detected after macro expansion.
#[allow(rustc::untranslatable_diagnostic)] // FIXME: make this translatable
fn check_attributes(&self, attrs: &[ast::Attribute], call: &ast::MacCall) { fn check_attributes(&self, attrs: &[ast::Attribute], call: &ast::MacCall) {
let features = self.cx.ecfg.features; let features = self.cx.ecfg.features;
let mut attrs = attrs.iter().peekable(); let mut attrs = attrs.iter().peekable();