mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +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.