mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 23:20:38 +00:00
vec::Splice can invalidate the slice::Iter inside vec::Drain. So we replace them with dangling pointers which, unlike ones to deallocated memory, are allowed.