| error: manually reimplementing `ilog2` |
| --> tests/ui/manual_ilog2.rs:8:5 |
| | |
| LL | 31 - a.leading_zeros(); |
| | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `a.ilog2()` |
| | |
| = note: `-D clippy::manual-ilog2` implied by `-D warnings` |
| = help: to override `-D warnings` add `#[allow(clippy::manual_ilog2)]` |
| |
| error: manually reimplementing `ilog2` |
| --> tests/ui/manual_ilog2.rs:9:5 |
| | |
| LL | a.ilog(2); |
| | ^^^^^^^^^ help: try: `a.ilog2()` |
| |
| error: manually reimplementing `ilog2` |
| --> tests/ui/manual_ilog2.rs:11:5 |
| | |
| LL | 63 - b.leading_zeros(); |
| | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `b.ilog2()` |
| |
| error: manually reimplementing `ilog2` |
| --> tests/ui/manual_ilog2.rs:45:15 |
| | |
| LL | let log = 31 - access!(x).leading_zeros(); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `access!(x).ilog2()` |
| |
| error: manually reimplementing `ilog2` |
| --> tests/ui/manual_ilog2.rs:47:15 |
| | |
| LL | let log = access!(x).ilog(2); |
| | ^^^^^^^^^^^^^^^^^^ help: try: `access!(x).ilog2()` |
| |
| error: aborting due to 5 previous errors |
| |