Skip to content

Commit d376a6b

Browse files
committed
add type parameters to BitMatrix and SparseBitMatrix unit tests
1 parent 5c603e8 commit d376a6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/librustc_data_structures/bitvec.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ fn grow() {
484484

485485
#[test]
486486
fn matrix_intersection() {
487-
let mut vec1 = BitMatrix::new(200, 200);
487+
let mut vec1: BitMatrix<usize, usize> = BitMatrix::new(200, 200);
488488

489489
// (*) Elements reachable from both 2 and 65.
490490

@@ -515,7 +515,7 @@ fn matrix_intersection() {
515515

516516
#[test]
517517
fn matrix_iter() {
518-
let mut matrix = BitMatrix::new(64, 100);
518+
let mut matrix: BitMatrix<usize, usize> = BitMatrix::new(64, 100);
519519
matrix.add(3, 22);
520520
matrix.add(3, 75);
521521
matrix.add(2, 99);
@@ -557,7 +557,7 @@ fn matrix_iter() {
557557

558558
#[test]
559559
fn sparse_matrix_iter() {
560-
let mut matrix = SparseBitMatrix::new(64, 100);
560+
let mut matrix: SparseBitMatrix<usize, usize> = SparseBitMatrix::new(64, 100);
561561
matrix.add(3, 22);
562562
matrix.add(3, 75);
563563
matrix.add(2, 99);

0 commit comments

Comments
 (0)