Skip to content

Commit 8767b00

Browse files
committed
Formatting
1 parent ce37f0a commit 8767b00

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
@@ -274,7 +274,7 @@ fn sparse_intersect<T: Idx>(
274274
// Optimization of dense/sparse intersection. The resulting set is
275275
// guaranteed to be at most the size of the sparse set, and hence can be
276276
// represented as a sparse set. Therefore the sparse set is copied and filtered,
277-
// then returned as the new set.
277+
// then returned as the new set.
278278
fn dense_sparse_intersect<T: Idx>(
279279
dense: &BitSet<T>,
280280
sparse: &SparseBitSet<T>,
@@ -312,7 +312,7 @@ impl<T: Idx> BitRelations<HybridBitSet<T>> for BitSet<T> {
312312
HybridBitSet::Sparse(sparse) => {
313313
let (updated, changed) = dense_sparse_intersect(self, sparse);
314314

315-
// We can't directly assign the BitSet to the SparseBitSet, and
315+
// We can't directly assign the BitSet to the SparseBitSet, and
316316
// doing `*self = updated.to_dense()` would cause a drop / reallocation. Instead,
317317
// the BitSet is cleared and `updated` is copied into `self`.
318318
self.clear();

0 commit comments

Comments
 (0)