Change std::vec to std::slice and std::vec_ng to std::vec.

Needed to sync with upstream rust master.