diff options
| author | Peter Jaszkowiak <p.jaszkow@gmail.com> | 2024-02-20 20:55:13 -0700 |
|---|---|---|
| committer | Peter Jaszkowiak <p.jaszkow@gmail.com> | 2024-02-20 20:55:13 -0700 |
| commit | 4913ab8f779582dc9da099a148a4670ede0e15aa (patch) | |
| tree | 033e490c20d5a19bba456a5b9d7bb9a9a6e0acea /compiler/rustc_const_eval/src | |
| parent | 0b2f194b830264f828f5713327369c1f74b4e933 (diff) | |
| download | rust-4913ab8f779582dc9da099a148a4670ede0e15aa.tar.gz rust-4913ab8f779582dc9da099a148a4670ede0e15aa.zip | |
Stabilize `LazyCell` and `LazyLock` (`lazy_cell`)
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/check_consts/ops.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/check_consts/ops.rs b/compiler/rustc_const_eval/src/check_consts/ops.rs index 8406e0f4876..90b622cae65 100644 --- a/compiler/rustc_const_eval/src/check_consts/ops.rs +++ b/compiler/rustc_const_eval/src/check_consts/ops.rs @@ -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 |
