logoalt Hacker News

adgjlsfhk1last Sunday at 2:22 PM1 replyview on HN

unsafe rust still has to follow invariants, you're just promising the compiler that it does


Replies

zozbot234last Sunday at 2:42 PM

Yes, clearly it's a matter of using different facilities that may only be accessible to Unsafe Rust, and changing the interface accordingly. But to state that Rust as a whole has such restrictions is not correct.