]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/floating_point_powi.stderr
Rollup merge of #84221 - ABouttefeux:generic-arg-elision, r=estebank
[rust.git] / src / tools / clippy / tests / ui / floating_point_powi.stderr
1 error: multiply and add expressions can be calculated more efficiently and accurately
2   --> $DIR/floating_point_powi.rs:9:13
3    |
4 LL |     let _ = x.powi(2) + y;
5    |             ^^^^^^^^^^^^^ help: consider using: `x.mul_add(x, y)`
6    |
7    = note: `-D clippy::suboptimal-flops` implied by `-D warnings`
8
9 error: multiply and add expressions can be calculated more efficiently and accurately
10   --> $DIR/floating_point_powi.rs:10:13
11    |
12 LL |     let _ = x + y.powi(2);
13    |             ^^^^^^^^^^^^^ help: consider using: `y.mul_add(y, x)`
14
15 error: multiply and add expressions can be calculated more efficiently and accurately
16   --> $DIR/floating_point_powi.rs:11:13
17    |
18 LL |     let _ = (x.powi(2) + y).sqrt();
19    |             ^^^^^^^^^^^^^^^ help: consider using: `x.mul_add(x, y)`
20
21 error: multiply and add expressions can be calculated more efficiently and accurately
22   --> $DIR/floating_point_powi.rs:12:13
23    |
24 LL |     let _ = (x + y.powi(2)).sqrt();
25    |             ^^^^^^^^^^^^^^^ help: consider using: `y.mul_add(y, x)`
26
27 error: aborting due to 4 previous errors
28