We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 356d407 commit 73b79c7Copy full SHA for 73b79c7
compiler-builtins/src/int/trailing_zeros.rs
@@ -35,7 +35,7 @@ mod implementation {
35
x >>= t; // x = [0 - 0xFF] + higher garbage bits
36
r += t;
37
38
- let mut x: u8 = x.cast();
+ let mut x: u8 = x.cast_lossy();
39
40
t = (((x & 0x0F) == 0) as u32) << 2;
41
x >>= t; // x = [0 - 0xF] + higher garbage bits
0 commit comments