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: (e.pow(x) - 1) can be computed more accurately
2  --> $DIR/floating_point_exp.rs:6:13
3   |
4LL |     let _ = x.exp() - 1.0;
5   |             ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
6   |
7   = note: `-D clippy::imprecise-flops` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::imprecise_flops)]`
9
10error: (e.pow(x) - 1) can be computed more accurately
11  --> $DIR/floating_point_exp.rs:7:13
12   |
13LL |     let _ = x.exp() - 1.0 + 2.0;
14   |             ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
15
16error: (e.pow(x) - 1) can be computed more accurately
17  --> $DIR/floating_point_exp.rs:8:13
18   |
19LL |     let _ = (x as f32).exp() - 1.0 + 2.0;
20   |             ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x as f32).exp_m1()`
21
22error: (e.pow(x) - 1) can be computed more accurately
23  --> $DIR/floating_point_exp.rs:14:13
24   |
25LL |     let _ = x.exp() - 1.0;
26   |             ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
27
28error: (e.pow(x) - 1) can be computed more accurately
29  --> $DIR/floating_point_exp.rs:15:13
30   |
31LL |     let _ = x.exp() - 1.0 + 2.0;
32   |             ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
33
34error: aborting due to 5 previous errors
35