Skip to content

Commit 2611bf7

Browse files
committed
Tidy some patterns in ChunkedBitSet ops.
1 parent ff6dc92 commit 2611bf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_index/src/bit_set.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ impl<T: Idx> BitRelations<ChunkedBitSet<T>> for ChunkedBitSet<T> {
789789

790790
match (&mut self_chunk, &other_chunk) {
791791
(_, Zeros) | (Ones, _) => {}
792-
(Zeros, Ones) | (Mixed(..), Ones) | (Zeros, Mixed(..)) => {
792+
(Zeros, _) | (Mixed(..), Ones) => {
793793
// `other_chunk` fully overwrites `self_chunk`
794794
*self_chunk = other_chunk.clone();
795795
changed = true;
@@ -853,7 +853,7 @@ impl<T: Idx> BitRelations<ChunkedBitSet<T>> for ChunkedBitSet<T> {
853853

854854
match (&mut self_chunk, &other_chunk) {
855855
(Zeros, _) | (_, Zeros) => {}
856-
(Ones | Mixed(_, _), Ones) => {
856+
(Ones | Mixed(..), Ones) => {
857857
changed = true;
858858
*self_chunk = Zeros;
859859
}

0 commit comments

Comments
 (0)