Hacker News

11 year old unsoundness bugs found in Rust borrow checker

11 year old unsoundness bugs found in Rust borrow checker #shorts ...

struct’s lifetime requirements can be bypassed via covariant field assignment #164250New issueCopy linkNew issueCopy linkOpenOpenstruct’s lifetime requirements can be bypassed via covariant field assignment#164250Copy linkLabelsA-borrow-checkerArea: The borrow checkerArea: The borrow checkerA-destructorsArea: Destructors (`Drop`, …)Area: Destructors (`Drop`, …)A-lifetimesArea: Lifetimes / regionsArea: Lifetimes / regionsA-varianceArea: Variance (https://doc.rust-lang.org/nomicon/subtyping.html)Area: Variance (https://doc.rust-lang.org/nomicon/subtyping.html)C-bugCategory: This is a bug.Category: This…

Continue reading at Hacker News github.com
Advertisement