4 ms·
I'm not sure that's correct. `UnsafeCell` is a Rust lang item that might disable some optimizations, I think? https://doc.rust-lang.org/src/core/cell.rs.html#1
by jrvidal 7y ago
I'm not sure that's correct. `UnsafeCell` is a Rust lang item that might disable some optimizations, I think?
https://doc.rust-lang.org/src/core/cell.rs.html#1483 https://doc.rust-lang.org/src/core/cell.rs.html#1483
- simias 7y agoYou're right, I just saw that. Well I least I learned something new about Rust today!
- aratakareigen 7y agoYep, you can't implement UnsafeCell yourself without running into undefined behavior.