2020-06-15 11:55:12 -05:00
|
|
|
error: log base can be expressed more clearly
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/floating_point_logbase.rs:7:13
|
2020-06-01 16:32:52 -05:00
|
|
|
|
|
|
|
|
LL | let _ = x.ln() / y.ln();
|
|
|
|
| ^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::suboptimal-flops` implied by `-D warnings`
|
|
|
|
|
2020-06-15 11:55:12 -05:00
|
|
|
error: log base can be expressed more clearly
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/floating_point_logbase.rs:8:13
|
2020-06-01 16:32:52 -05:00
|
|
|
|
|
2022-08-29 15:36:11 -05:00
|
|
|
LL | let _ = (x as f32).ln() / y.ln();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x as f32).log(y)`
|
|
|
|
|
|
|
|
error: log base can be expressed more clearly
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/floating_point_logbase.rs:9:13
|
2022-08-29 15:36:11 -05:00
|
|
|
|
|
2020-06-01 16:32:52 -05:00
|
|
|
LL | let _ = x.log2() / y.log2();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
|
|
|
|
|
2020-06-15 11:55:12 -05:00
|
|
|
error: log base can be expressed more clearly
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/floating_point_logbase.rs:10:13
|
2020-06-01 16:32:52 -05:00
|
|
|
|
|
|
|
|
LL | let _ = x.log10() / y.log10();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
|
|
|
|
|
2020-06-15 11:55:12 -05:00
|
|
|
error: log base can be expressed more clearly
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/floating_point_logbase.rs:11:13
|
2020-06-01 16:32:52 -05:00
|
|
|
|
|
|
|
|
LL | let _ = x.log(5f32) / y.log(5f32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
|
|
|
|
|
2022-08-29 15:36:11 -05:00
|
|
|
error: aborting due to 5 previous errors
|
2020-06-01 16:32:52 -05:00
|
|
|
|