Skip to content

Commit 73b79c7

Browse files
committed
fix tests
1 parent 356d407 commit 73b79c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-builtins/src/int/trailing_zeros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ mod implementation {
3535
x >>= t; // x = [0 - 0xFF] + higher garbage bits
3636
r += t;
3737

38-
let mut x: u8 = x.cast();
38+
let mut x: u8 = x.cast_lossy();
3939

4040
t = (((x & 0x0F) == 0) as u32) << 2;
4141
x >>= t; // x = [0 - 0xF] + higher garbage bits

0 commit comments

Comments
 (0)