News for hackers. Stuff that matters.
Re:Rust 1.63 by dralley on Thursday August 11, 2022 @04:03PM (#32431033)
>(you have to use 'unsafe' to turn off the safety features)

"unsafe" doesn't turn off any safety features, it just allows you to do additional things which the base language does not, like:

* use raw pointers

* use mutable static globals

* access fields of unions

https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html#unsa...

All the rules of safe Rust still apply inside of unsafe blocks. The borrow checker still works, etc.

There are no comments on this comment yet.