|
1 | 1 | error: casting isize to i8 may truncate the value |
2 | | - --> $DIR/cast_size.rs:11:5 |
| 2 | + --> $DIR/cast_size.rs:12:5 |
3 | 3 | | |
4 | 4 | LL | 1isize as i8; |
5 | 5 | | ^^^^^^^^^^^^ |
6 | 6 | | |
7 | 7 | = note: `-D clippy::cast-possible-truncation` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: casting isize to f64 causes a loss of precision on targets with 64-bit wide pointers (isize is 64 bits wide, but f64's mantissa is only 52 bits wide) |
10 | | - --> $DIR/cast_size.rs:14:5 |
| 10 | + --> $DIR/cast_size.rs:15:5 |
11 | 11 | | |
12 | 12 | LL | x0 as f64; |
13 | 13 | | ^^^^^^^^^ |
14 | 14 | | |
15 | 15 | = note: `-D clippy::cast-precision-loss` implied by `-D warnings` |
16 | 16 |
|
17 | 17 | error: casting usize to f64 causes a loss of precision on targets with 64-bit wide pointers (usize is 64 bits wide, but f64's mantissa is only 52 bits wide) |
18 | | - --> $DIR/cast_size.rs:15:5 |
| 18 | + --> $DIR/cast_size.rs:16:5 |
19 | 19 | | |
20 | 20 | LL | x1 as f64; |
21 | 21 | | ^^^^^^^^^ |
22 | 22 |
|
23 | 23 | error: casting isize to f32 causes a loss of precision (isize is 32 or 64 bits wide, but f32's mantissa is only 23 bits wide) |
24 | | - --> $DIR/cast_size.rs:16:5 |
| 24 | + --> $DIR/cast_size.rs:17:5 |
25 | 25 | | |
26 | 26 | LL | x0 as f32; |
27 | 27 | | ^^^^^^^^^ |
28 | 28 |
|
29 | 29 | error: casting usize to f32 causes a loss of precision (usize is 32 or 64 bits wide, but f32's mantissa is only 23 bits wide) |
30 | | - --> $DIR/cast_size.rs:17:5 |
| 30 | + --> $DIR/cast_size.rs:18:5 |
31 | 31 | | |
32 | 32 | LL | x1 as f32; |
33 | 33 | | ^^^^^^^^^ |
34 | 34 |
|
35 | 35 | error: casting isize to i32 may truncate the value on targets with 64-bit wide pointers |
36 | | - --> $DIR/cast_size.rs:18:5 |
| 36 | + --> $DIR/cast_size.rs:19:5 |
37 | 37 | | |
38 | 38 | LL | 1isize as i32; |
39 | 39 | | ^^^^^^^^^^^^^ |
40 | 40 |
|
41 | 41 | error: casting isize to u32 may truncate the value on targets with 64-bit wide pointers |
42 | | - --> $DIR/cast_size.rs:19:5 |
| 42 | + --> $DIR/cast_size.rs:20:5 |
43 | 43 | | |
44 | 44 | LL | 1isize as u32; |
45 | 45 | | ^^^^^^^^^^^^^ |
46 | 46 |
|
47 | 47 | error: casting usize to u32 may truncate the value on targets with 64-bit wide pointers |
48 | | - --> $DIR/cast_size.rs:20:5 |
| 48 | + --> $DIR/cast_size.rs:21:5 |
49 | 49 | | |
50 | 50 | LL | 1usize as u32; |
51 | 51 | | ^^^^^^^^^^^^^ |
52 | 52 |
|
53 | 53 | error: casting usize to i32 may truncate the value on targets with 64-bit wide pointers |
54 | | - --> $DIR/cast_size.rs:21:5 |
| 54 | + --> $DIR/cast_size.rs:22:5 |
55 | 55 | | |
56 | 56 | LL | 1usize as i32; |
57 | 57 | | ^^^^^^^^^^^^^ |
58 | 58 |
|
59 | 59 | error: casting usize to i32 may wrap around the value on targets with 32-bit wide pointers |
60 | | - --> $DIR/cast_size.rs:21:5 |
| 60 | + --> $DIR/cast_size.rs:22:5 |
61 | 61 | | |
62 | 62 | LL | 1usize as i32; |
63 | 63 | | ^^^^^^^^^^^^^ |
64 | 64 | | |
65 | 65 | = note: `-D clippy::cast-possible-wrap` implied by `-D warnings` |
66 | 66 |
|
67 | 67 | error: casting i64 to isize may truncate the value on targets with 32-bit wide pointers |
68 | | - --> $DIR/cast_size.rs:23:5 |
| 68 | + --> $DIR/cast_size.rs:24:5 |
69 | 69 | | |
70 | 70 | LL | 1i64 as isize; |
71 | 71 | | ^^^^^^^^^^^^^ |
72 | 72 |
|
73 | 73 | error: casting i64 to usize may truncate the value on targets with 32-bit wide pointers |
74 | | - --> $DIR/cast_size.rs:24:5 |
| 74 | + --> $DIR/cast_size.rs:25:5 |
75 | 75 | | |
76 | 76 | LL | 1i64 as usize; |
77 | 77 | | ^^^^^^^^^^^^^ |
78 | 78 |
|
79 | 79 | error: casting u64 to isize may truncate the value on targets with 32-bit wide pointers |
80 | | - --> $DIR/cast_size.rs:25:5 |
| 80 | + --> $DIR/cast_size.rs:26:5 |
81 | 81 | | |
82 | 82 | LL | 1u64 as isize; |
83 | 83 | | ^^^^^^^^^^^^^ |
84 | 84 |
|
85 | 85 | error: casting u64 to isize may wrap around the value on targets with 64-bit wide pointers |
86 | | - --> $DIR/cast_size.rs:25:5 |
| 86 | + --> $DIR/cast_size.rs:26:5 |
87 | 87 | | |
88 | 88 | LL | 1u64 as isize; |
89 | 89 | | ^^^^^^^^^^^^^ |
90 | 90 |
|
91 | 91 | error: casting u64 to usize may truncate the value on targets with 32-bit wide pointers |
92 | | - --> $DIR/cast_size.rs:26:5 |
| 92 | + --> $DIR/cast_size.rs:27:5 |
93 | 93 | | |
94 | 94 | LL | 1u64 as usize; |
95 | 95 | | ^^^^^^^^^^^^^ |
96 | 96 |
|
97 | 97 | error: casting u32 to isize may wrap around the value on targets with 32-bit wide pointers |
98 | | - --> $DIR/cast_size.rs:27:5 |
| 98 | + --> $DIR/cast_size.rs:28:5 |
99 | 99 | | |
100 | 100 | LL | 1u32 as isize; |
101 | 101 | | ^^^^^^^^^^^^^ |
102 | 102 |
|
103 | 103 | error: casting i32 to f32 causes a loss of precision (i32 is 32 bits wide, but f32's mantissa is only 23 bits wide) |
104 | | - --> $DIR/cast_size.rs:32:5 |
| 104 | + --> $DIR/cast_size.rs:33:5 |
105 | 105 | | |
106 | 106 | LL | 999_999_999 as f32; |
107 | 107 | | ^^^^^^^^^^^^^^^^^^ |
108 | 108 |
|
109 | 109 | error: casting usize to f64 causes a loss of precision on targets with 64-bit wide pointers (usize is 64 bits wide, but f64's mantissa is only 52 bits wide) |
110 | | - --> $DIR/cast_size.rs:33:5 |
| 110 | + --> $DIR/cast_size.rs:34:5 |
111 | 111 | | |
112 | 112 | LL | 9_999_999_999_999_999usize as f64; |
113 | 113 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
0 commit comments