]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/floating_point_exp.stderr
Auto merge of #87686 - matthiaskrgr:clippy_august_21_perf, r=jackh726
[rust.git] / src / tools / clippy / tests / ui / floating_point_exp.stderr
1 error: (e.pow(x) - 1) can be computed more accurately
2   --> $DIR/floating_point_exp.rs:6:13
3    |
4 LL |     let _ = x.exp() - 1.0;
5    |             ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
6    |
7    = note: `-D clippy::imprecise-flops` implied by `-D warnings`
8
9 error: (e.pow(x) - 1) can be computed more accurately
10   --> $DIR/floating_point_exp.rs:7:13
11    |
12 LL |     let _ = x.exp() - 1.0 + 2.0;
13    |             ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
14
15 error: (e.pow(x) - 1) can be computed more accurately
16   --> $DIR/floating_point_exp.rs:13:13
17    |
18 LL |     let _ = x.exp() - 1.0;
19    |             ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
20
21 error: (e.pow(x) - 1) can be computed more accurately
22   --> $DIR/floating_point_exp.rs:14:13
23    |
24 LL |     let _ = x.exp() - 1.0 + 2.0;
25    |             ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
26
27 error: aborting due to 4 previous errors
28