Change `~[T]` to Vec<T> in librustc

r? @pnkfelix