]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/floating_point_logbase.stderr
Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup
[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 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    |
18 LL |     let _ = x.log2() / y.log2();
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.log10() / y.log10();
25    |             ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
26
27 error: log base can be expressed more clearly
28   --> $DIR/floating_point_logbase.rs:11:13
29    |
30 LL |     let _ = x.log(5f32) / y.log(5f32);
31    |             ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
32
33 error: aborting due to 5 previous errors
34