]> git.lizzy.rs Git - rust.git/blob - tests/ui/floating_point_rad.stderr
Auto merge of #8187 - ApamNapat:fix_7651, r=llogiq
[rust.git] / tests / ui / floating_point_rad.stderr
1 error: conversion to degrees can be done more accurately
2   --> $DIR/floating_point_rad.rs:13:13
3    |
4 LL |     let _ = x * 180f32 / std::f32::consts::PI;
5    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_degrees()`
6    |
7    = note: `-D clippy::suboptimal-flops` implied by `-D warnings`
8
9 error: conversion to degrees can be done more accurately
10   --> $DIR/floating_point_rad.rs:14:13
11    |
12 LL |     let _ = 90. * 180f64 / std::f64::consts::PI;
13    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.0_f64.to_degrees()`
14
15 error: conversion to degrees can be done more accurately
16   --> $DIR/floating_point_rad.rs:15:13
17    |
18 LL |     let _ = 90.5 * 180f64 / std::f64::consts::PI;
19    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.5_f64.to_degrees()`
20
21 error: conversion to radians can be done more accurately
22   --> $DIR/floating_point_rad.rs:16:13
23    |
24 LL |     let _ = x * std::f32::consts::PI / 180f32;
25    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_radians()`
26
27 error: conversion to radians can be done more accurately
28   --> $DIR/floating_point_rad.rs:17:13
29    |
30 LL |     let _ = 90. * std::f32::consts::PI / 180f32;
31    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.0_f64.to_radians()`
32
33 error: conversion to radians can be done more accurately
34   --> $DIR/floating_point_rad.rs:18:13
35    |
36 LL |     let _ = 90.5 * std::f32::consts::PI / 180f32;
37    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.5_f64.to_radians()`
38
39 error: aborting due to 6 previous errors
40