Use arrayvec 0.7, drop smallvec 0.6

With the arrival of min const generics, many alt-vec libraries have
updated to use it in some way and arrayvec is no exception. Use the
latest with minor refactoring.

Also, rustc_workspace_hack is the only user of smallvec 0.6 in the
entire tree, so drop it.
This commit is contained in:
Jubilee Young 2021-04-21 21:40:29 -07:00
parent b849326744
commit e8eb691c1f
8 changed files with 61 additions and 69 deletions

View file

@ -375,7 +375,7 @@ const SPARSE_MAX: usize = 8;
#[derive(Clone, Debug)]
pub struct SparseBitSet<T> {
domain_size: usize,
elems: ArrayVec<[T; SPARSE_MAX]>,
elems: ArrayVec<T, SPARSE_MAX>,
}
impl<T: Idx> SparseBitSet<T> {