Size of `UnsafeCell`
โ Rust ๐ 2025-07-30 ๐ค surdeus ๐๏ธ 13In a recent issue, Iโve noticed the following line:
UnsafeCell<T>can be larger thanTin some cases
Could someone give an example of how this is possible? Iโm not sure if I can come up with one off the top of my head, and besides, isnโt being repr(transparent) a soundness property of UnsafeCell?
4 posts - 4 participants
๐ท๏ธ Rust_feed