Accelerating the search for antimicrobial peptides with Google Antigravity
deepmind.google·2h ago
TL;DR
A long-standing unsoundness bug in Rust's borrow checker was discovered, allowing struct lifetime requirements to be bypassed through covariant field assignment. This flaw could lead to unsafe memory access in Rust programs.
✦ Why It Matters
Review your Rust code for potential lifetime violations to ensure memory safety.
Key Takeaways
How It Works
The bug arises from the ability to assign a non-'static reference to a struct that expects a 'static reference. This is made possible through covariant field assignments, which allow the compiler to accept the assignment despite the potential for unsafe memory access.
Related