|
|
|
|
|
by hashmal
3075 days ago
|
|
The Rust book clearly states: "It’s important to understand that unsafe doesn’t turn off the borrow checker or disable any other of Rust’s safety checks" [1] "unsafe" unlocks only 4 things: Dereferencing a raw pointer, Calling an unsafe function or method, Accessing or modifying a mutable static variable, Implementing an unsafe trait. [1] https://doc.rust-lang.org/book/second-edition/ch19-01-unsafe... |
|