]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: log base can be expressed more clearly |
2 | --> $DIR/floating_point_logbase.rs:7:13 | |
3 | | | |
4 | LL | let _ = x.ln() / y.ln(); | |
5 | | ^^^^^^^^^^^^^^^ help: consider using: `x.log(y)` | |
6 | | | |
7 | = note: `-D clippy::suboptimal-flops` implied by `-D warnings` | |
8 | ||
9 | error: log base can be expressed more clearly | |
10 | --> $DIR/floating_point_logbase.rs:8:13 | |
11 | | | |
f2b60f7d FG |
12 | LL | let _ = (x as f32).ln() / y.ln(); |
13 | | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x as f32).log(y)` | |
14 | ||
15 | error: log base can be expressed more clearly | |
16 | --> $DIR/floating_point_logbase.rs:9:13 | |
17 | | | |
f20569fa XL |
18 | LL | let _ = x.log2() / y.log2(); |
19 | | ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)` | |
20 | ||
21 | error: log base can be expressed more clearly | |
f2b60f7d | 22 | --> $DIR/floating_point_logbase.rs:10:13 |
f20569fa XL |
23 | | |
24 | LL | let _ = x.log10() / y.log10(); | |
25 | | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)` | |
26 | ||
27 | error: log base can be expressed more clearly | |
f2b60f7d | 28 | --> $DIR/floating_point_logbase.rs:11:13 |
f20569fa XL |
29 | | |
30 | LL | let _ = x.log(5f32) / y.log(5f32); | |
31 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)` | |
32 | ||
f2b60f7d | 33 | error: aborting due to 5 previous errors |
f20569fa | 34 |