Skip to content

Commit ef96965

Browse files
committed
add MixedBitSet::clear
1 parent f23a80a commit ef96965

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: compiler/rustc_index/src/bit_set.rs

+8
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,14 @@ impl<T: Idx> MixedBitSet<T> {
11911191
}
11921192
}
11931193

1194+
#[inline]
1195+
pub fn clear(&mut self) {
1196+
match self {
1197+
MixedBitSet::Small(set) => set.clear(),
1198+
MixedBitSet::Large(set) => set.clear(),
1199+
}
1200+
}
1201+
11941202
bit_relations_inherent_impls! {}
11951203
}
11961204

0 commit comments

Comments
 (0)