You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of rust-lang#11466 - Alexendoo:ci-32bit, r=flip1995
Fix `i686-unknown-linux-gnu` CI job
When testing oli-obk/ui_test#161 I gave `--ignored` a try, I was surprised to see many of the 32bit tests passing even though I'm on a 64bit target
Turns out the `.stderr`s were incorrect, and our `i686-unknown-linux-gnu` job has been running `x86_64-unknown-linux-gnu` so it didn't get picked up
changelog: none
Copy file name to clipboardExpand all lines: tests/ui/cast_size.32bit.stderr
+30-23Lines changed: 30 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
error: casting `isize` to `i8` may truncate the value
2
-
--> $DIR/cast_size_32bit.rs:12:5
2
+
--> $DIR/cast_size.rs:15:5
3
3
|
4
4
LL | 1isize as i8;
5
5
| ^^^^^^^^^^^^
@@ -12,33 +12,33 @@ LL | i8::try_from(1isize);
12
12
| ~~~~~~~~~~~~~~~~~~~~
13
13
14
14
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)
15
-
--> $DIR/cast_size_32bit.rs:15:5
15
+
--> $DIR/cast_size.rs:18:5
16
16
|
17
17
LL | x0 as f64;
18
18
| ^^^^^^^^^
19
19
|
20
20
= note: `-D clippy::cast-precision-loss` implied by `-D warnings`
21
21
22
22
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)
23
-
--> $DIR/cast_size_32bit.rs:16:5
23
+
--> $DIR/cast_size.rs:19:5
24
24
|
25
25
LL | x1 as f64;
26
26
| ^^^^^^^^^
27
27
28
28
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)
29
-
--> $DIR/cast_size_32bit.rs:17:5
29
+
--> $DIR/cast_size.rs:20:5
30
30
|
31
31
LL | x0 as f32;
32
32
| ^^^^^^^^^
33
33
34
34
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)
35
-
--> $DIR/cast_size_32bit.rs:18:5
35
+
--> $DIR/cast_size.rs:21:5
36
36
|
37
37
LL | x1 as f32;
38
38
| ^^^^^^^^^
39
39
40
40
error: casting `isize` to `i32` may truncate the value on targets with 64-bit wide pointers
41
-
--> $DIR/cast_size_32bit.rs:19:5
41
+
--> $DIR/cast_size.rs:22:5
42
42
|
43
43
LL | 1isize as i32;
44
44
| ^^^^^^^^^^^^^
@@ -50,7 +50,7 @@ LL | i32::try_from(1isize);
50
50
| ~~~~~~~~~~~~~~~~~~~~~
51
51
52
52
error: casting `isize` to `u32` may truncate the value on targets with 64-bit wide pointers
53
-
--> $DIR/cast_size_32bit.rs:20:5
53
+
--> $DIR/cast_size.rs:23:5
54
54
|
55
55
LL | 1isize as u32;
56
56
| ^^^^^^^^^^^^^
@@ -62,7 +62,7 @@ LL | u32::try_from(1isize);
62
62
| ~~~~~~~~~~~~~~~~~~~~~
63
63
64
64
error: casting `usize` to `u32` may truncate the value on targets with 64-bit wide pointers
65
-
--> $DIR/cast_size_32bit.rs:21:5
65
+
--> $DIR/cast_size.rs:24:5
66
66
|
67
67
LL | 1usize as u32;
68
68
| ^^^^^^^^^^^^^
@@ -74,7 +74,7 @@ LL | u32::try_from(1usize);
74
74
| ~~~~~~~~~~~~~~~~~~~~~
75
75
76
76
error: casting `usize` to `i32` may truncate the value on targets with 64-bit wide pointers
77
-
--> $DIR/cast_size_32bit.rs:22:5
77
+
--> $DIR/cast_size.rs:25:5
78
78
|
79
79
LL | 1usize as i32;
80
80
| ^^^^^^^^^^^^^
@@ -86,15 +86,15 @@ LL | i32::try_from(1usize);
86
86
| ~~~~~~~~~~~~~~~~~~~~~
87
87
88
88
error: casting `usize` to `i32` may wrap around the value on targets with 32-bit wide pointers
89
-
--> $DIR/cast_size_32bit.rs:22:5
89
+
--> $DIR/cast_size.rs:25:5
90
90
|
91
91
LL | 1usize as i32;
92
92
| ^^^^^^^^^^^^^
93
93
|
94
94
= note: `-D clippy::cast-possible-wrap` implied by `-D warnings`
95
95
96
96
error: casting `i64` to `isize` may truncate the value on targets with 32-bit wide pointers
97
-
--> $DIR/cast_size_32bit.rs:24:5
97
+
--> $DIR/cast_size.rs:26:5
98
98
|
99
99
LL | 1i64 as isize;
100
100
| ^^^^^^^^^^^^^
@@ -106,7 +106,7 @@ LL | isize::try_from(1i64);
106
106
| ~~~~~~~~~~~~~~~~~~~~~
107
107
108
108
error: casting `i64` to `usize` may truncate the value on targets with 32-bit wide pointers
109
-
--> $DIR/cast_size_32bit.rs:25:5
109
+
--> $DIR/cast_size.rs:27:5
110
110
|
111
111
LL | 1i64 as usize;
112
112
| ^^^^^^^^^^^^^
@@ -118,7 +118,7 @@ LL | usize::try_from(1i64);
118
118
| ~~~~~~~~~~~~~~~~~~~~~
119
119
120
120
error: casting `u64` to `isize` may truncate the value on targets with 32-bit wide pointers
121
-
--> $DIR/cast_size_32bit.rs:26:5
121
+
--> $DIR/cast_size.rs:28:5
122
122
|
123
123
LL | 1u64 as isize;
124
124
| ^^^^^^^^^^^^^
@@ -130,13 +130,13 @@ LL | isize::try_from(1u64);
130
130
| ~~~~~~~~~~~~~~~~~~~~~
131
131
132
132
error: casting `u64` to `isize` may wrap around the value on targets with 64-bit wide pointers
133
-
--> $DIR/cast_size_32bit.rs:26:5
133
+
--> $DIR/cast_size.rs:28:5
134
134
|
135
135
LL | 1u64 as isize;
136
136
| ^^^^^^^^^^^^^
137
137
138
138
error: casting `u64` to `usize` may truncate the value on targets with 32-bit wide pointers
139
-
--> $DIR/cast_size_32bit.rs:27:5
139
+
--> $DIR/cast_size.rs:29:5
140
140
|
141
141
LL | 1u64 as usize;
142
142
| ^^^^^^^^^^^^^
@@ -148,24 +148,31 @@ LL | usize::try_from(1u64);
148
148
| ~~~~~~~~~~~~~~~~~~~~~
149
149
150
150
error: casting `u32` to `isize` may wrap around the value on targets with 32-bit wide pointers
151
-
--> $DIR/cast_size_32bit.rs:28:5
151
+
--> $DIR/cast_size.rs:30:5
152
152
|
153
153
LL | 1u32 as isize;
154
154
| ^^^^^^^^^^^^^
155
155
156
156
error: casting `i32` to `f32` causes a loss of precision (`i32` is 32 bits wide, but `f32`'s mantissa is only 23 bits wide)
157
-
--> $DIR/cast_size_32bit.rs:33:5
157
+
--> $DIR/cast_size.rs:35:5
158
158
|
159
159
LL | 999_999_999 as f32;
160
160
| ^^^^^^^^^^^^^^^^^^
161
161
162
-
error: casting integer literal to `f64` is unnecessary
163
-
--> $DIR/cast_size_32bit.rs:34:5
162
+
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)
Copy file name to clipboardExpand all lines: tests/ui/cast_size.64bit.stderr
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
error: casting `isize` to `i8` may truncate the value
2
-
--> $DIR/cast_size.rs:12:5
2
+
--> $DIR/cast_size.rs:15:5
3
3
|
4
4
LL | 1isize as i8;
5
5
| ^^^^^^^^^^^^
@@ -12,7 +12,7 @@ LL | i8::try_from(1isize);
12
12
| ~~~~~~~~~~~~~~~~~~~~
13
13
14
14
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)
15
-
--> $DIR/cast_size.rs:16:5
15
+
--> $DIR/cast_size.rs:18:5
16
16
|
17
17
LL | x0 as f64;
18
18
| ^^^^^^^^^
@@ -26,19 +26,19 @@ LL | x1 as f64;
26
26
| ^^^^^^^^^
27
27
28
28
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)
29
-
--> $DIR/cast_size.rs:21:5
29
+
--> $DIR/cast_size.rs:20:5
30
30
|
31
31
LL | x0 as f32;
32
32
| ^^^^^^^^^
33
33
34
34
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)
35
-
--> $DIR/cast_size.rs:23:5
35
+
--> $DIR/cast_size.rs:21:5
36
36
|
37
37
LL | x1 as f32;
38
38
| ^^^^^^^^^
39
39
40
40
error: casting `isize` to `i32` may truncate the value on targets with 64-bit wide pointers
41
-
--> $DIR/cast_size.rs:25:5
41
+
--> $DIR/cast_size.rs:22:5
42
42
|
43
43
LL | 1isize as i32;
44
44
| ^^^^^^^^^^^^^
@@ -50,7 +50,7 @@ LL | i32::try_from(1isize);
50
50
| ~~~~~~~~~~~~~~~~~~~~~
51
51
52
52
error: casting `isize` to `u32` may truncate the value on targets with 64-bit wide pointers
53
-
--> $DIR/cast_size.rs:27:5
53
+
--> $DIR/cast_size.rs:23:5
54
54
|
55
55
LL | 1isize as u32;
56
56
| ^^^^^^^^^^^^^
@@ -62,7 +62,7 @@ LL | u32::try_from(1isize);
62
62
| ~~~~~~~~~~~~~~~~~~~~~
63
63
64
64
error: casting `usize` to `u32` may truncate the value on targets with 64-bit wide pointers
65
-
--> $DIR/cast_size.rs:29:5
65
+
--> $DIR/cast_size.rs:24:5
66
66
|
67
67
LL | 1usize as u32;
68
68
| ^^^^^^^^^^^^^
@@ -74,7 +74,7 @@ LL | u32::try_from(1usize);
74
74
| ~~~~~~~~~~~~~~~~~~~~~
75
75
76
76
error: casting `usize` to `i32` may truncate the value on targets with 64-bit wide pointers
77
-
--> $DIR/cast_size.rs:31:5
77
+
--> $DIR/cast_size.rs:25:5
78
78
|
79
79
LL | 1usize as i32;
80
80
| ^^^^^^^^^^^^^
@@ -86,15 +86,15 @@ LL | i32::try_from(1usize);
86
86
| ~~~~~~~~~~~~~~~~~~~~~
87
87
88
88
error: casting `usize` to `i32` may wrap around the value on targets with 32-bit wide pointers
89
-
--> $DIR/cast_size.rs:31:5
89
+
--> $DIR/cast_size.rs:25:5
90
90
|
91
91
LL | 1usize as i32;
92
92
| ^^^^^^^^^^^^^
93
93
|
94
94
= note: `-D clippy::cast-possible-wrap` implied by `-D warnings`
95
95
96
96
error: casting `i64` to `isize` may truncate the value on targets with 32-bit wide pointers
97
-
--> $DIR/cast_size.rs:36:5
97
+
--> $DIR/cast_size.rs:26:5
98
98
|
99
99
LL | 1i64 as isize;
100
100
| ^^^^^^^^^^^^^
@@ -106,7 +106,7 @@ LL | isize::try_from(1i64);
106
106
| ~~~~~~~~~~~~~~~~~~~~~
107
107
108
108
error: casting `i64` to `usize` may truncate the value on targets with 32-bit wide pointers
109
-
--> $DIR/cast_size.rs:38:5
109
+
--> $DIR/cast_size.rs:27:5
110
110
|
111
111
LL | 1i64 as usize;
112
112
| ^^^^^^^^^^^^^
@@ -118,7 +118,7 @@ LL | usize::try_from(1i64);
118
118
| ~~~~~~~~~~~~~~~~~~~~~
119
119
120
120
error: casting `u64` to `isize` may truncate the value on targets with 32-bit wide pointers
121
-
--> $DIR/cast_size.rs:40:5
121
+
--> $DIR/cast_size.rs:28:5
122
122
|
123
123
LL | 1u64 as isize;
124
124
| ^^^^^^^^^^^^^
@@ -130,13 +130,13 @@ LL | isize::try_from(1u64);
130
130
| ~~~~~~~~~~~~~~~~~~~~~
131
131
132
132
error: casting `u64` to `isize` may wrap around the value on targets with 64-bit wide pointers
133
-
--> $DIR/cast_size.rs:40:5
133
+
--> $DIR/cast_size.rs:28:5
134
134
|
135
135
LL | 1u64 as isize;
136
136
| ^^^^^^^^^^^^^
137
137
138
138
error: casting `u64` to `usize` may truncate the value on targets with 32-bit wide pointers
139
-
--> $DIR/cast_size.rs:43:5
139
+
--> $DIR/cast_size.rs:29:5
140
140
|
141
141
LL | 1u64 as usize;
142
142
| ^^^^^^^^^^^^^
@@ -148,19 +148,19 @@ LL | usize::try_from(1u64);
148
148
| ~~~~~~~~~~~~~~~~~~~~~
149
149
150
150
error: casting `u32` to `isize` may wrap around the value on targets with 32-bit wide pointers
151
-
--> $DIR/cast_size.rs:45:5
151
+
--> $DIR/cast_size.rs:30:5
152
152
|
153
153
LL | 1u32 as isize;
154
154
| ^^^^^^^^^^^^^
155
155
156
156
error: casting `i32` to `f32` causes a loss of precision (`i32` is 32 bits wide, but `f32`'s mantissa is only 23 bits wide)
157
-
--> $DIR/cast_size.rs:51:5
157
+
--> $DIR/cast_size.rs:35:5
158
158
|
159
159
LL | 999_999_999 as f32;
160
160
| ^^^^^^^^^^^^^^^^^^
161
161
162
162
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)
0 commit comments