News Score: Score the News, Sort the News, Rewrite the Headlines

Turning off Rust's borrow checker, completely

I recently came across #[you_can::turn_off_the_borrow_checker], a Rust macro that makes it so the borrow checker is “turned off” for a function. It transforms the code of a function to transform reference manipulations into unsafe code that does that without the borrow checker knowing. Of course, this is not the sort of thing you would want to use in production, or really for anything other than education and experimentation. However, it made me curious if it could be implemented at a lower leve...

Read more at iter.ca

© News Score  score the news, sort the news, rewrite the headlines