mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
f40d8256eb
Simplify OnceCell Clone impl Noticed when developing https://github.com/fast/mea/pull/79. This may also apply to `OnceLock`. But unfortunately, we can't construct a completed `Once` beforehand. Note that `OnceCell::from` is marked as [`rustc_const_unstable`](https://github.com/rust-lang/rust/issues/143773) so we don't need an extra `const fn from_value` to leverage possible const convert benefit.