rustc_expand: remove some redundant #[allow(rustc::untranslatable_diagnostic)]
This commit is contained in:
parent
f43cdcea22
commit
fbc2459015
@ -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(),
|
||||||
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user