Remove deprecated into_vec method from &[T]

[breaking-change]
Closes #17916