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