We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[allow(rustc::untranslatable_diagnostic)]
1 parent f83b085 commit 43f3a21Copy full SHA for 43f3a21
compiler/rustc_const_eval/src/check_consts/ops.rs
@@ -605,8 +605,6 @@ impl<'tcx> NonConstOp<'tcx> for StaticAccess {
605
span,
606
format!("referencing statics in {}s is unstable", ccx.const_kind(),),
607
);
608
- // FIXME: make this translatable
609
- #[allow(rustc::untranslatable_diagnostic)]
610
err
611
.note("`static` and `const` variables can refer to other `const` variables. A `const` variable, however, cannot refer to a `static` variable.")
612
.help("to fix this, the value can be extracted to a `const` and then used.");
0 commit comments