Stabilize LazyCell
and LazyLock
(lazy_cell
)
This commit is contained in:
parent
0b2f194b83
commit
4913ab8f77
34 changed files with 60 additions and 82 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue