diff --git a/compiler/rustc_index/src/bit_set.rs b/compiler/rustc_index/src/bit_set.rs index 1bb323cb2c4..fff0b3df7f9 100644 --- a/compiler/rustc_index/src/bit_set.rs +++ b/compiler/rustc_index/src/bit_set.rs @@ -379,9 +379,9 @@ impl BitRelations> for HybridBitSet { fn union(&mut self, other: &HybridBitSet) -> bool { assert_eq!(self.domain_size(), other.domain_size()); match self { - HybridBitSet::Sparse(self_sparse) => { + HybridBitSet::Sparse(_) => { match other { - HybridBitSet::Sparse(_) => { + HybridBitSet::Sparse(other_sparse) => { // Both sets are sparse. Add the elements in // `other_sparse` to `self` one at a time. This // may or may not cause `self` to be densified.