summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/floating_point_logbase.stderr
blob: 9d736b5e1a2748ef7e46769220391cdcf99c423a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
error: log base can be expressed more clearly
  --> $DIR/floating_point_logbase.rs:8:13
   |
LL |     let _ = x.ln() / y.ln();
   |             ^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
   |
   = note: `-D clippy::suboptimal-flops` implied by `-D warnings`

error: log base can be expressed more clearly
  --> $DIR/floating_point_logbase.rs:9:13
   |
LL |     let _ = (x as f32).ln() / y.ln();
   |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x as f32).log(y)`

error: log base can be expressed more clearly
  --> $DIR/floating_point_logbase.rs:10:13
   |
LL |     let _ = x.log2() / y.log2();
   |             ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`

error: log base can be expressed more clearly
  --> $DIR/floating_point_logbase.rs:11:13
   |
LL |     let _ = x.log10() / y.log10();
   |             ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`

error: log base can be expressed more clearly
  --> $DIR/floating_point_logbase.rs:12:13
   |
LL |     let _ = x.log(5f32) / y.log(5f32);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`

error: aborting due to 5 previous errors