fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB35 linesraw
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   = help: to override `-D warnings` add `#[allow(clippy::suboptimal_flops)]`
9
10error: log base can be expressed more clearly
11  --> $DIR/floating_point_logbase.rs:8:13
12   |
13LL |     let _ = (x as f32).ln() / y.ln();
14   |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x as f32).log(y)`
15
16error: log base can be expressed more clearly
17  --> $DIR/floating_point_logbase.rs:9:13
18   |
19LL |     let _ = x.log2() / y.log2();
20   |             ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
21
22error: log base can be expressed more clearly
23  --> $DIR/floating_point_logbase.rs:10:13
24   |
25LL |     let _ = x.log10() / y.log10();
26   |             ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
27
28error: log base can be expressed more clearly
29  --> $DIR/floating_point_logbase.rs:11:13
30   |
31LL |     let _ = x.log(5f32) / y.log(5f32);
32   |             ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
33
34error: aborting due to 5 previous errors
35