mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +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.