rustc_const_eval: make LazyLock suggestion translatable

This commit is contained in:
Pavel Grigorenko 2024-08-07 18:42:55 +03:00
parent 3a18c6b55f
commit a11922d568
2 changed files with 4 additions and 1 deletions

View file

@ -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