Skip to content

Commit fbc2459

Browse files
committed
rustc_expand: remove some redundant #[allow(rustc::untranslatable_diagnostic)]
1 parent f43cdce commit fbc2459

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

compiler/rustc_expand/src/base.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1398,8 +1398,6 @@ fn pretty_printing_compatibility_hack(item: &Item, sess: &Session) {
13981398
};
13991399

14001400
if crate_matches {
1401-
// FIXME: make this translatable
1402-
#[allow(rustc::untranslatable_diagnostic)]
14031401
sess.dcx().emit_fatal(errors::ProcMacroBackCompat {
14041402
crate_name: "rental".to_string(),
14051403
fixed_version: "0.5.6".to_string(),

compiler/rustc_expand/src/expand.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,6 @@ impl<'a, 'b> InvocationCollector<'a, 'b> {
18761876

18771877
// Detect use of feature-gated or invalid attributes on macro invocations
18781878
// since they will not be detected after macro expansion.
1879-
#[allow(rustc::untranslatable_diagnostic)] // FIXME: make this translatable
18801879
fn check_attributes(&self, attrs: &[ast::Attribute], call: &ast::MacCall) {
18811880
let features = self.cx.ecfg.features;
18821881
let mut attrs = attrs.iter().peekable();

0 commit comments

Comments
 (0)