mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
rustc_const_eval: remove redundant #[allow(rustc::untranslatable_diagnostic)]
This commit is contained in:
parent
f83b085a0c
commit
43f3a218ea
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user