Stabilize LazyCell and LazyLock (lazy_cell)

This commit is contained in:
Peter Jaszkowiak 2024-02-20 20:55:13 -07:00
parent 0b2f194b83
commit 4913ab8f77
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
34 changed files with 60 additions and 82 deletions

View file

@ -309,7 +309,7 @@ impl<'tcx> NonConstOp<'tcx> for FnCallNonConst<'tcx> {
}
if let ConstContext::Static(_) = ccx.const_kind() {
err.note("consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell");
err.note("consider wrapping this expression in `std::sync::LazyLock::new(|| ...)`");
}
err