rustc_const_eval: remove redundant #[allow(rustc::untranslatable_diagnostic)]

This commit is contained in:
Pavel Grigorenko 2024-08-07 18:28:52 +03:00
parent f83b085a0c
commit 43f3a218ea

View File

@ -605,8 +605,6 @@ impl<'tcx> NonConstOp<'tcx> for StaticAccess {
span,
format!("referencing statics in {}s is unstable", ccx.const_kind(),),
);
// FIXME: make this translatable
#[allow(rustc::untranslatable_diagnostic)]
err
.note("`static` and `const` variables can refer to other `const` variables. A `const` variable, however, cannot refer to a `static` variable.")
.help("to fix this, the value can be extracted to a `const` and then used.");