]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/cast_lossless_float.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / cast_lossless_float.stderr
CommitLineData
f20569fa
XL
1error: casting `i8` to `f32` may become silently lossy if you later change the type
2 --> $DIR/cast_lossless_float.rs:9:5
3 |
4LL | x0 as f32;
5 | ^^^^^^^^^ help: try: `f32::from(x0)`
6 |
7 = note: `-D clippy::cast-lossless` implied by `-D warnings`
8
9error: casting `i8` to `f64` may become silently lossy if you later change the type
10 --> $DIR/cast_lossless_float.rs:10:5
11 |
12LL | x0 as f64;
13 | ^^^^^^^^^ help: try: `f64::from(x0)`
14
15error: casting `u8` to `f32` may become silently lossy if you later change the type
16 --> $DIR/cast_lossless_float.rs:12:5
17 |
18LL | x1 as f32;
19 | ^^^^^^^^^ help: try: `f32::from(x1)`
20
21error: casting `u8` to `f64` may become silently lossy if you later change the type
22 --> $DIR/cast_lossless_float.rs:13:5
23 |
24LL | x1 as f64;
25 | ^^^^^^^^^ help: try: `f64::from(x1)`
26
27error: casting `i16` to `f32` may become silently lossy if you later change the type
28 --> $DIR/cast_lossless_float.rs:15:5
29 |
30LL | x2 as f32;
31 | ^^^^^^^^^ help: try: `f32::from(x2)`
32
33error: casting `i16` to `f64` may become silently lossy if you later change the type
34 --> $DIR/cast_lossless_float.rs:16:5
35 |
36LL | x2 as f64;
37 | ^^^^^^^^^ help: try: `f64::from(x2)`
38
39error: casting `u16` to `f32` may become silently lossy if you later change the type
40 --> $DIR/cast_lossless_float.rs:18:5
41 |
42LL | x3 as f32;
43 | ^^^^^^^^^ help: try: `f32::from(x3)`
44
45error: casting `u16` to `f64` may become silently lossy if you later change the type
46 --> $DIR/cast_lossless_float.rs:19:5
47 |
48LL | x3 as f64;
49 | ^^^^^^^^^ help: try: `f64::from(x3)`
50
51error: casting `i32` to `f64` may become silently lossy if you later change the type
52 --> $DIR/cast_lossless_float.rs:21:5
53 |
54LL | x4 as f64;
55 | ^^^^^^^^^ help: try: `f64::from(x4)`
56
57error: casting `u32` to `f64` may become silently lossy if you later change the type
58 --> $DIR/cast_lossless_float.rs:23:5
59 |
60LL | x5 as f64;
61 | ^^^^^^^^^ help: try: `f64::from(x5)`
62
63error: casting `f32` to `f64` may become silently lossy if you later change the type
64 --> $DIR/cast_lossless_float.rs:26:5
65 |
66LL | 1.0f32 as f64;
67 | ^^^^^^^^^^^^^ help: try: `f64::from(1.0f32)`
68
69error: aborting due to 11 previous errors
70