]> git.lizzy.rs Git - rust.git/blob - tests/ui/floating_point_rad.stderr
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / floating_point_rad.stderr
1 error: conversion to radians can be done more accurately
2   --> $DIR/floating_point_rad.rs:12:13
3    |
4 LL |     let _ = degrees as f64 * std::f64::consts::PI / 180.0;
5    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(degrees as f64).to_radians()`
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:13:13
11    |
12 LL |     let _ = degrees as f64 * 180.0 / std::f64::consts::PI;
13    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(degrees as f64).to_degrees()`
14
15 error: conversion to degrees can be done more accurately
16   --> $DIR/floating_point_rad.rs:18:13
17    |
18 LL |     let _ = x * 180f32 / std::f32::consts::PI;
19    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_degrees()`
20
21 error: conversion to degrees can be done more accurately
22   --> $DIR/floating_point_rad.rs:19:13
23    |
24 LL |     let _ = 90. * 180f64 / std::f64::consts::PI;
25    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.0_f64.to_degrees()`
26
27 error: conversion to degrees can be done more accurately
28   --> $DIR/floating_point_rad.rs:20:13
29    |
30 LL |     let _ = 90.5 * 180f64 / std::f64::consts::PI;
31    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.5_f64.to_degrees()`
32
33 error: conversion to radians can be done more accurately
34   --> $DIR/floating_point_rad.rs:21:13
35    |
36 LL |     let _ = x * std::f32::consts::PI / 180f32;
37    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_radians()`
38
39 error: conversion to radians can be done more accurately
40   --> $DIR/floating_point_rad.rs:22:13
41    |
42 LL |     let _ = 90. * std::f32::consts::PI / 180f32;
43    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.0_f64.to_radians()`
44
45 error: conversion to radians can be done more accurately
46   --> $DIR/floating_point_rad.rs:23:13
47    |
48 LL |     let _ = 90.5 * std::f32::consts::PI / 180f32;
49    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `90.5_f64.to_radians()`
50
51 error: aborting due to 8 previous errors
52