std: Avoid ptr::copy
if unnecessary in vec::Drain
#50575
Merged
ptr::copy
if unnecessary in vec::Drain
#50575