Remove into_vec method from &[T]

[breaking-change]
Closes #17916
auto merge of #17942 : JIghtuse/rust/master, r=alexcrichton

[breaking-change]
Closes #17916