rustc_const_eval: make LazyLock suggestion translatable
This commit is contained in:
parent
3a18c6b55f
commit
a11922d568
2 changed files with 4 additions and 1 deletions
|
@ -310,7 +310,7 @@ impl<'tcx> NonConstOp<'tcx> for FnCallNonConst<'tcx> {
|
|||
}
|
||||
|
||||
if let ConstContext::Static(_) = ccx.const_kind() {
|
||||
err.note("consider wrapping this expression in `std::sync::LazyLock::new(|| ...)`");
|
||||
err.note(fluent_generated::const_eval_lazy_lock);
|
||||
}
|
||||
|
||||
err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue