Re:From Zero to Main(): Bare Metal Rust
by paavohtl on Wednesday December 18, 2019 @04:45AM
(#21823305)
Unsafe Rust has significantly more safety guarantees than C or C++. It doesn't disable the type system, bounds checking, ownership tracking or borrow checking.
[ Parent
| on HN ]
Re:From Zero to Main(): Bare Metal Rust
by CaptainMarvel on Thursday December 19, 2019 @03:04AM
(#21832932)
What does Unsafe Rust disable then?
Re:From Zero to Main(): Bare Metal Rust
by steveklabnik on Thursday December 19, 2019 @10:27AM
(#21835668)
It does not disable, it enables. Unsafe doesn't turn anything off, it adds new capabilities instead. https://doc.rust-lang.org/nomicon/what-unsafe-does.html