@@ -8,7 +8,6 @@ use std::{fmt, iter, slice};
88use Chunk :: * ;
99#[ cfg( feature = "nightly" ) ]
1010use rustc_macros:: { Decodable_NoContext , Encodable_NoContext } ;
11- use smallvec:: { SmallVec , smallvec} ;
1211
1312use crate :: { Idx , IndexVec } ;
1413
@@ -118,7 +117,7 @@ macro_rules! bit_relations_inherent_impls {
118117#[ derive( Eq , PartialEq , Hash ) ]
119118pub struct DenseBitSet < T > {
120119domain_size : usize ,
121- words : SmallVec < [ Word ; 2 ] > ,
120+ words : Vec < Word > ,
122121marker : PhantomData < T > ,
123122}
124123
@@ -134,15 +133,15 @@ impl<T: Idx> DenseBitSet<T> {
134133#[ inline]
135134pub fn new_empty ( domain_size : usize ) -> DenseBitSet < T > {
136135let num_words = num_words ( domain_size) ;
137- DenseBitSet { domain_size, words : smallvec ! [ 0 ; num_words] , marker : PhantomData }
136+ DenseBitSet { domain_size, words : vec ! [ 0 ; num_words] , marker : PhantomData }
138137}
139138
140139/// Creates a new, filled bitset with a given `domain_size`.
141140#[ inline]
142141pub fn new_filled ( domain_size : usize ) -> DenseBitSet < T > {
143142let num_words = num_words ( domain_size) ;
144143let mut result =
145- DenseBitSet { domain_size, words : smallvec ! [ !0 ; num_words] , marker : PhantomData } ;
144+ DenseBitSet { domain_size, words : vec ! [ !0 ; num_words] , marker : PhantomData } ;
146145 result. clear_excess_bits ( ) ;
147146 result
148147}
@@ -1384,7 +1383,7 @@ impl<T: Idx> From<DenseBitSet<T>> for GrowableBitSet<T> {
13841383pub struct BitMatrix < R : Idx , C : Idx > {
13851384num_rows : usize ,
13861385num_columns : usize ,
1387- words : SmallVec < [ Word ; 2 ] > ,
1386+ words : Vec < Word > ,
13881387marker : PhantomData < ( R , C ) > ,
13891388}
13901389
@@ -1397,7 +1396,7 @@ impl<R: Idx, C: Idx> BitMatrix<R, C> {
13971396BitMatrix {
13981397 num_rows,
13991398 num_columns,
1400- words : smallvec ! [ 0 ; num_rows * words_per_row] ,
1399+ words : vec ! [ 0 ; num_rows * words_per_row] ,
14011400marker : PhantomData ,
14021401}
14031402}
0 commit comments