]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/floating_point_rad.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / floating_point_rad.stderr
CommitLineData
f20569fa
XL
1error: conversion to degrees can be done more accurately
2 --> $DIR/floating_point_rad.rs:6:13
3 |
4LL | 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
9error: conversion to radians can be done more accurately
10 --> $DIR/floating_point_rad.rs:7:13
11 |
12LL | let _ = x * std::f32::consts::PI / 180f32;
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.to_radians()`
14
15error: aborting due to 2 previous errors
16