Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Aug 26, 2021
1 parent 8d9e4f9 commit c735727
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions compiler/rustc_index/src/bit_set/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,24 +350,24 @@ fn sparse_matrix_operations() {
assert!(matrix.row(0).is_none());
}

// SparseBitMatrix::subtract_row
{
// SparseBitMatrix::subtract_row
{
let mut matrix = matrix.clone();
assert!(!matrix.subtract_row(3, &disjoint));
assert!(matrix.subtract_row(3, &subset));
assert!(matrix.subtract_row(3, &superset));
matrix.intersect_row(0, &disjoint);
assert!(matrix.row(0).is_none());
}
}

// SparseBitMatrix::union_row
{
// SparseBitMatrix::union_row
{
let mut matrix = matrix.clone();
assert!(!matrix.union_row(3, &subset));
assert!(matrix.union_row(3, &disjoint));
matrix.union_row(0, &disjoint);
assert!(matrix.row(0).is_some());
}
}
}

/// Merge dense hybrid set into empty sparse hybrid set.
Expand Down

0 comments on commit c735727

Please sign in to comment.