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 51be384 commit bd65f17Copy full SHA for bd65f17
tests/ui/manual_ilog2.rs
@@ -8,5 +8,5 @@ fn main() {
8
let b: u64 = 543534;
9
let _ = 63 - b.leading_zeros();
10
11
- let _ = 64 - b.leading_zeros(); // No lint
+ let _ = 64 - b.leading_zeros(); // No lint because manual ilog2 is BIT_WIDTH - 1 - x.leading_zeros()
12
}
0 commit comments