mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
47014b1bb9
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.