Skip to content

Commit 43f3a21

Browse files
committed
rustc_const_eval: remove redundant #[allow(rustc::untranslatable_diagnostic)]
1 parent f83b085 commit 43f3a21

File tree

1 file changed

+0
-2
lines changed
  • compiler/rustc_const_eval/src/check_consts

1 file changed

+0
-2
lines changed

compiler/rustc_const_eval/src/check_consts/ops.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,6 @@ impl<'tcx> NonConstOp<'tcx> for StaticAccess {
605605
span,
606606
format!("referencing statics in {}s is unstable", ccx.const_kind(),),
607607
);
608-
// FIXME: make this translatable
609-
#[allow(rustc::untranslatable_diagnostic)]
610608
err
611609
.note("`static` and `const` variables can refer to other `const` variables. A `const` variable, however, cannot refer to a `static` variable.")
612610
.help("to fix this, the value can be extracted to a `const` and then used.");

0 commit comments

Comments
 (0)