diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2024-12-17 18:54:39 +0000 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2024-12-17 18:54:39 +0000 |
| commit | ef96965f44ac1f0b8d99d39708283e07fadcc945 (patch) | |
| tree | 6de0d1b4049137992b9699f25797d18b784e01b7 /compiler/rustc_index | |
| parent | f23a80a4c2fbca593b64e70f5970368824b4c5e9 (diff) | |
| download | rust-ef96965f44ac1f0b8d99d39708283e07fadcc945.tar.gz rust-ef96965f44ac1f0b8d99d39708283e07fadcc945.zip | |
add `MixedBitSet::clear`
Diffstat (limited to 'compiler/rustc_index')
| -rw-r--r-- | compiler/rustc_index/src/bit_set.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_index/src/bit_set.rs b/compiler/rustc_index/src/bit_set.rs index aba1e938296..664b77fd49e 100644 --- a/compiler/rustc_index/src/bit_set.rs +++ b/compiler/rustc_index/src/bit_set.rs @@ -1191,6 +1191,14 @@ impl<T: Idx> MixedBitSet<T> { } } + #[inline] + pub fn clear(&mut self) { + match self { + MixedBitSet::Small(set) => set.clear(), + MixedBitSet::Large(set) => set.clear(), + } + } + bit_relations_inherent_impls! {} } |
