1 error: multiply and add expressions can be calculated more efficiently and accurately
2 --> $DIR/floating_point_powi.rs:9:13
4 LL | let _ = x.powi(2) + y;
5 | ^^^^^^^^^^^^^ help: consider using: `x.mul_add(x, y)`
7 = note: `-D clippy::suboptimal-flops` implied by `-D warnings`
9 error: multiply and add expressions can be calculated more efficiently and accurately
10 --> $DIR/floating_point_powi.rs:10:13
12 LL | let _ = x + y.powi(2);
13 | ^^^^^^^^^^^^^ help: consider using: `y.mul_add(y, x)`
15 error: multiply and add expressions can be calculated more efficiently and accurately
16 --> $DIR/floating_point_powi.rs:11:13
18 LL | let _ = x + (y as f32).powi(2);
19 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(y as f32).mul_add(y as f32, x)`
21 error: multiply and add expressions can be calculated more efficiently and accurately
22 --> $DIR/floating_point_powi.rs:12:13
24 LL | let _ = (x.powi(2) + y).sqrt();
25 | ^^^^^^^^^^^^^^^ help: consider using: `x.mul_add(x, y)`
27 error: multiply and add expressions can be calculated more efficiently and accurately
28 --> $DIR/floating_point_powi.rs:13:13
30 LL | let _ = (x + y.powi(2)).sqrt();
31 | ^^^^^^^^^^^^^^^ help: consider using: `y.mul_add(y, x)`
33 error: aborting due to 5 previous errors