You're right, I just saw that. Well I least I learned something new about Rust today!
Re:Rust Ownership Rules
by aratakareigen on Monday March 02, 2020 @08:08AM
(#22464024)
Yep, you can't implement UnsafeCell yourself without running into undefined behavior.
https://doc.rust-lang.org/src/core/cell.rs.html#1483