Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jrvidal
· 6y ago · 0 comments
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
Comments
[–]
simias
6y ago
You're right, I just saw that. Well I least I learned something new about Rust today!
[–]
aratakareigen
6y ago
Yep, you can't implement UnsafeCell yourself without running into undefined behavior.