Skip to content

Commit fc0f5cb

Browse files
committed
c2rust-refactor: Add missing variants in casts tests
1 parent 9e66b7e commit fc0f5cb

File tree

1 file changed

+1
-1
lines changed
  • c2rust-refactor/src/transform/casts

1 file changed

+1
-1
lines changed

c2rust-refactor/src/transform/casts/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn ty_bit_width(ty: SimpleTy, pw: PointerWidth) -> u32 {
3838
SimpleTy::Size(_) | SimpleTy::Pointer => pw.0.try_into().expect("failed to cast"),
3939
SimpleTy::Float32 => 32,
4040
SimpleTy::Float64 => 64,
41-
SimpleTy::Other => unreachable!(), // FIXME
41+
SimpleTy::Ref | SimpleTy::Array | SimpleTy::Other => unreachable!(), // FIXME
4242
}
4343
}
4444

0 commit comments

Comments
 (0)