diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2024-08-21 00:10:13 +0300 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2024-09-17 09:40:34 -0700 |
| commit | d0a2ca4867c15659e28ab9c3930b5df4e60afcb0 (patch) | |
| tree | 5b0492210781415f79f2dadfc63d68e842afcd0a /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 5601d14249818d952da612fec481b7af3ed03a39 (diff) | |
| download | rust-d0a2ca4867c15659e28ab9c3930b5df4e60afcb0.tar.gz rust-d0a2ca4867c15659e28ab9c3930b5df4e60afcb0.zip | |
Implement ACP 429: add `Lazy{Cell,Lock}::get[_mut]` and `force_mut`
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions
