]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/floating_point_logbase.stderr
Auto merge of #78415 - tgnottingham:expn_id_tag_hash, r=Aaron1011
[rust.git] / src / tools / clippy / tests / ui / floating_point_logbase.stderr
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    |
12 LL |     let _ = x.log2() / y.log2();
13    |             ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
14
15 error: log base can be expressed more clearly
16   --> $DIR/floating_point_logbase.rs:9:13
17    |
18 LL |     let _ = x.log10() / y.log10();
19    |             ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
20
21 error: log base can be expressed more clearly
22   --> $DIR/floating_point_logbase.rs:10:13
23    |
24 LL |     let _ = x.log(5f32) / y.log(5f32);
25    |             ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
26
27 error: aborting due to 4 previous errors
28