mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-24 23:17:53 +00:00
In the implementation of `force_mut`, I chose performance over safety. For `LazyLock` this isn't really a choice; the code has to be unsafe. But for `LazyCell`, we can have a full-safe implementation, but it will be a bit less performant, so I went with the unsafe approach.