News for hackers. Stuff that matters.
Re:Stacked Borrows: An Aliasing Model for Rust by kd5bjo on Sunday February 09, 2020 @06:53AM (#22281673)
Also, this is the primary reason that unsafe exists— there exists code that is both useful and correct but the borrow checker can’t properly verify. It’s a marker that tells the compiler it’s not responsible for verifying that code.
Re:Stacked Borrows: An Aliasing Model for Rust by smaddox on Sunday February 09, 2020 @12:23PM (#22283160)
To clarify, the borrow checker is not disabled in unsafe blocks. Unsafe blocks just allow raw pointer dereferencing, which can be used to bypass the borrow checker.