• Sources: primary, discussion
  • Summary: Issue 164250, opened 2026-10-13, shows that assigning to a covariant field of a struct with a Drop impl bypasses the struct's lifetime bounds. Safe code can then read memory after its scope ends, and AddressSanitizer reports stack-use-after-scope. Contributors reproduced variants back to Rust 1.4, and the types team labeled it I-unsound and P-high.
  • Why it matters: Safe Rust code that compiles today can hit use-after-free through Drop impls, so the memory-safety guarantee has a gap until a compiler fix ships.
  • Follow-up: A fix PR from the types team and the Rust release that carries it.
  • Comments: Hacker News readers mostly discuss why such an old hole went unnoticed. Contributors on the issue posted variants that segfault without needing a static.