diff options
| author | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-08-09 00:51:08 +0300 |
|---|---|---|
| committer | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-08-10 14:32:56 +0300 |
| commit | fbc245901561ac46ecd8011442e8e07fcfbeeea9 (patch) | |
| tree | 80d56d415b81d216b7d2e24f3088b61fddbf444d | |
| parent | f43cdcea221c208216b9fb200d280324c4c92405 (diff) | |
| download | rust-fbc245901561ac46ecd8011442e8e07fcfbeeea9.tar.gz rust-fbc245901561ac46ecd8011442e8e07fcfbeeea9.zip | |
rustc_expand: remove some redundant `#[allow(rustc::untranslatable_diagnostic)]`
| -rw-r--r-- | compiler/rustc_expand/src/base.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_expand/src/expand.rs | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_expand/src/base.rs b/compiler/rustc_expand/src/base.rs index c195d692588..5bc41d9836d 100644 --- a/compiler/rustc_expand/src/base.rs +++ b/compiler/rustc_expand/src/base.rs @@ -1398,8 +1398,6 @@ fn pretty_printing_compatibility_hack(item: &Item, sess: &Session) { }; if crate_matches { - // FIXME: make this translatable - #[allow(rustc::untranslatable_diagnostic)] sess.dcx().emit_fatal(errors::ProcMacroBackCompat { crate_name: "rental".to_string(), fixed_version: "0.5.6".to_string(), diff --git a/compiler/rustc_expand/src/expand.rs b/compiler/rustc_expand/src/expand.rs index d8cb367e3fa..b8f0a2aa7dc 100644 --- a/compiler/rustc_expand/src/expand.rs +++ b/compiler/rustc_expand/src/expand.rs @@ -1876,7 +1876,6 @@ impl<'a, 'b> InvocationCollector<'a, 'b> { // Detect use of feature-gated or invalid attributes on macro invocations // 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) { let features = self.cx.ecfg.features; let mut attrs = attrs.iter().peekable(); |
