Unnamed repository; edit this file 'description' to name the repository.
Rollup merge of #154929 - davidgauch:const-default-lazy, r=jhpratt
Add `const Default` impls for `LazyCell` and `LazyLock` Follow up to these commits by @estebank https://github.com/rust-lang/rust/pull/134628 and https://github.com/rust-lang/rust/pull/151190. Tracking issue https://github.com/rust-lang/rust/issues/143894. cc @fmease @fee1-dead @oli-obk This enables `static L: LazyLock<D> = Default::default()` for any type `D: Default` which is safe as `D::default()` is only evaluated at runtime.
Jonathan Brouwer 5 weeks ago
parent c833dcc · parent 1b94472 · commit a3f51e0
0 files changed, 0 insertions, 0 deletions