@@ -9,13 +9,28 @@ LL | fn ptx_ptr(f: extern "ptx-kernel" fn()) {
9
9
= note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
10
10
11
11
error[E0570]: `"ptx-kernel"` is not a supported ABI for the current target
12
- --> $DIR/unsupported.rs:43 :1
12
+ --> $DIR/unsupported.rs:44 :1
13
13
|
14
14
LL | extern "ptx-kernel" {}
15
15
| ^^^^^^^^^^^^^^^^^^^^^^
16
16
17
+ warning: the calling convention "gpu-kernel" is not supported on this target
18
+ --> $DIR/unsupported.rs:49:15
19
+ |
20
+ LL | fn gpu_ptr(f: extern "gpu-kernel" fn()) {
21
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
22
+ |
23
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
24
+ = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
25
+
26
+ error[E0570]: `"gpu-kernel"` is not a supported ABI for the current target
27
+ --> $DIR/unsupported.rs:55:1
28
+ |
29
+ LL | extern "gpu-kernel" {}
30
+ | ^^^^^^^^^^^^^^^^^^^^^^
31
+
17
32
warning: the calling convention "aapcs" is not supported on this target
18
- --> $DIR/unsupported.rs:50 :17
33
+ --> $DIR/unsupported.rs:60 :17
19
34
|
20
35
LL | fn aapcs_ptr(f: extern "aapcs" fn()) {
21
36
| ^^^^^^^^^^^^^^^^^^^
@@ -24,13 +39,13 @@ LL | fn aapcs_ptr(f: extern "aapcs" fn()) {
24
39
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
25
40
26
41
error[E0570]: `"aapcs"` is not a supported ABI for the current target
27
- --> $DIR/unsupported.rs:55 :1
42
+ --> $DIR/unsupported.rs:65 :1
28
43
|
29
44
LL | extern "aapcs" {}
30
45
| ^^^^^^^^^^^^^^^^^
31
46
32
47
warning: the calling convention "msp430-interrupt" is not supported on this target
33
- --> $DIR/unsupported.rs:60 :18
48
+ --> $DIR/unsupported.rs:70 :18
34
49
|
35
50
LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) {
36
51
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -39,13 +54,13 @@ LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) {
39
54
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
40
55
41
56
error[E0570]: `"msp430-interrupt"` is not a supported ABI for the current target
42
- --> $DIR/unsupported.rs:65 :1
57
+ --> $DIR/unsupported.rs:76 :1
43
58
|
44
59
LL | extern "msp430-interrupt" {}
45
60
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46
61
47
62
warning: the calling convention "avr-interrupt" is not supported on this target
48
- --> $DIR/unsupported.rs:70 :15
63
+ --> $DIR/unsupported.rs:81 :15
49
64
|
50
65
LL | fn avr_ptr(f: extern "avr-interrupt" fn()) {
51
66
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -54,28 +69,43 @@ LL | fn avr_ptr(f: extern "avr-interrupt" fn()) {
54
69
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
55
70
56
71
error[E0570]: `"avr-interrupt"` is not a supported ABI for the current target
57
- --> $DIR/unsupported.rs:75 :1
72
+ --> $DIR/unsupported.rs:87 :1
58
73
|
59
74
LL | extern "avr-interrupt" {}
60
75
| ^^^^^^^^^^^^^^^^^^^^^^^^^
61
76
62
77
warning: the calling convention "riscv-interrupt-m" is not supported on this target
63
- --> $DIR/unsupported.rs:80:17
78
+ --> $DIR/unsupported.rs:92:19
64
79
|
65
- LL | fn riscv_ptr (f: extern "riscv-interrupt-m" fn()) {
66
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80
+ LL | fn riscv_m_ptr (f: extern "riscv-interrupt-m" fn()) {
81
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67
82
|
68
83
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
69
84
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
70
85
71
86
error[E0570]: `"riscv-interrupt-m"` is not a supported ABI for the current target
72
- --> $DIR/unsupported.rs:85 :1
87
+ --> $DIR/unsupported.rs:98 :1
73
88
|
74
89
LL | extern "riscv-interrupt-m" {}
75
90
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
76
91
92
+ warning: the calling convention "riscv-interrupt-s" is not supported on this target
93
+ --> $DIR/unsupported.rs:103:19
94
+ |
95
+ LL | fn riscv_s_ptr(f: extern "riscv-interrupt-s" fn()) {
96
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
97
+ |
98
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
99
+ = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
100
+
101
+ error[E0570]: `"riscv-interrupt-s"` is not a supported ABI for the current target
102
+ --> $DIR/unsupported.rs:109:1
103
+ |
104
+ LL | extern "riscv-interrupt-s" {}
105
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106
+
77
107
warning: the calling convention "C-cmse-nonsecure-call" is not supported on this target
78
- --> $DIR/unsupported.rs:153 :21
108
+ --> $DIR/unsupported.rs:178 :21
79
109
|
80
110
LL | fn cmse_call_ptr(f: extern "C-cmse-nonsecure-call" fn()) {
81
111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -84,7 +114,7 @@ LL | fn cmse_call_ptr(f: extern "C-cmse-nonsecure-call" fn()) {
84
114
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
85
115
86
116
warning: the calling convention "C-cmse-nonsecure-entry" is not supported on this target
87
- --> $DIR/unsupported.rs:161 :22
117
+ --> $DIR/unsupported.rs:186 :22
88
118
|
89
119
LL | fn cmse_entry_ptr(f: extern "C-cmse-nonsecure-entry" fn()) {
90
120
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -93,7 +123,7 @@ LL | fn cmse_entry_ptr(f: extern "C-cmse-nonsecure-entry" fn()) {
93
123
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
94
124
95
125
error[E0570]: `"C-cmse-nonsecure-entry"` is not a supported ABI for the current target
96
- --> $DIR/unsupported.rs:166 :1
126
+ --> $DIR/unsupported.rs:191 :1
97
127
|
98
128
LL | extern "C-cmse-nonsecure-entry" {}
99
129
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -104,43 +134,133 @@ error[E0570]: `"ptx-kernel"` is not a supported ABI for the current target
104
134
LL | extern "ptx-kernel" fn ptx() {}
105
135
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106
136
137
+ error: functions with the `"ptx-kernel"` ABI cannot be called
138
+ --> $DIR/unsupported.rs:41:5
139
+ |
140
+ LL | f()
141
+ | ^^^
142
+ |
143
+ note: an `extern "ptx-kernel"` function can only be called using inline assembly
144
+ --> $DIR/unsupported.rs:41:5
145
+ |
146
+ LL | f()
147
+ | ^^^
148
+
107
149
error[E0570]: `"gpu-kernel"` is not a supported ABI for the current target
108
- --> $DIR/unsupported.rs:45 :1
150
+ --> $DIR/unsupported.rs:47 :1
109
151
|
110
152
LL | extern "gpu-kernel" fn gpu() {}
111
153
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
112
154
155
+ error: functions with the `"gpu-kernel"` ABI cannot be called
156
+ --> $DIR/unsupported.rs:52:5
157
+ |
158
+ LL | f()
159
+ | ^^^
160
+ |
161
+ note: an `extern "gpu-kernel"` function can only be called using inline assembly
162
+ --> $DIR/unsupported.rs:52:5
163
+ |
164
+ LL | f()
165
+ | ^^^
166
+
113
167
error[E0570]: `"aapcs"` is not a supported ABI for the current target
114
- --> $DIR/unsupported.rs:48 :1
168
+ --> $DIR/unsupported.rs:58 :1
115
169
|
116
170
LL | extern "aapcs" fn aapcs() {}
117
171
| ^^^^^^^^^^^^^^^^^^^^^^^^^
118
172
119
173
error[E0570]: `"msp430-interrupt"` is not a supported ABI for the current target
120
- --> $DIR/unsupported.rs:58 :1
174
+ --> $DIR/unsupported.rs:68 :1
121
175
|
122
176
LL | extern "msp430-interrupt" fn msp430() {}
123
177
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
124
178
179
+ error: functions with the `"msp430-interrupt"` ABI cannot be called
180
+ --> $DIR/unsupported.rs:73:5
181
+ |
182
+ LL | f()
183
+ | ^^^
184
+ |
185
+ note: an `extern "msp430-interrupt"` function can only be called using inline assembly
186
+ --> $DIR/unsupported.rs:73:5
187
+ |
188
+ LL | f()
189
+ | ^^^
190
+
125
191
error[E0570]: `"avr-interrupt"` is not a supported ABI for the current target
126
- --> $DIR/unsupported.rs:68 :1
192
+ --> $DIR/unsupported.rs:79 :1
127
193
|
128
194
LL | extern "avr-interrupt" fn avr() {}
129
195
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
130
196
197
+ error: functions with the `"avr-interrupt"` ABI cannot be called
198
+ --> $DIR/unsupported.rs:84:5
199
+ |
200
+ LL | f()
201
+ | ^^^
202
+ |
203
+ note: an `extern "avr-interrupt"` function can only be called using inline assembly
204
+ --> $DIR/unsupported.rs:84:5
205
+ |
206
+ LL | f()
207
+ | ^^^
208
+
131
209
error[E0570]: `"riscv-interrupt-m"` is not a supported ABI for the current target
132
- --> $DIR/unsupported.rs:78 :1
210
+ --> $DIR/unsupported.rs:90 :1
133
211
|
134
- LL | extern "riscv-interrupt-m" fn riscv() {}
135
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
212
+ LL | extern "riscv-interrupt-m" fn riscv_m() {}
213
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
214
+
215
+ error: functions with the `"riscv-interrupt-m"` ABI cannot be called
216
+ --> $DIR/unsupported.rs:95:5
217
+ |
218
+ LL | f()
219
+ | ^^^
220
+ |
221
+ note: an `extern "riscv-interrupt-m"` function can only be called using inline assembly
222
+ --> $DIR/unsupported.rs:95:5
223
+ |
224
+ LL | f()
225
+ | ^^^
226
+
227
+ error[E0570]: `"riscv-interrupt-s"` is not a supported ABI for the current target
228
+ --> $DIR/unsupported.rs:101:1
229
+ |
230
+ LL | extern "riscv-interrupt-s" fn riscv_s() {}
231
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
232
+
233
+ error: functions with the `"riscv-interrupt-s"` ABI cannot be called
234
+ --> $DIR/unsupported.rs:106:5
235
+ |
236
+ LL | f()
237
+ | ^^^
238
+ |
239
+ note: an `extern "riscv-interrupt-s"` function can only be called using inline assembly
240
+ --> $DIR/unsupported.rs:106:5
241
+ |
242
+ LL | f()
243
+ | ^^^
244
+
245
+ error: functions with the `"x86-interrupt"` ABI cannot be called
246
+ --> $DIR/unsupported.rs:117:5
247
+ |
248
+ LL | f()
249
+ | ^^^
250
+ |
251
+ note: an `extern "x86-interrupt"` function can only be called using inline assembly
252
+ --> $DIR/unsupported.rs:117:5
253
+ |
254
+ LL | f()
255
+ | ^^^
136
256
137
257
error[E0570]: `"C-cmse-nonsecure-entry"` is not a supported ABI for the current target
138
- --> $DIR/unsupported.rs:159 :1
258
+ --> $DIR/unsupported.rs:184 :1
139
259
|
140
260
LL | extern "C-cmse-nonsecure-entry" fn cmse_entry() {}
141
261
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142
262
143
- error: aborting due to 13 previous errors; 7 warnings emitted
263
+ error: aborting due to 23 previous errors; 9 warnings emitted
144
264
145
265
For more information about this error, try `rustc --explain E0570`.
146
266
Future incompatibility report: Future breakage diagnostic:
@@ -154,9 +274,20 @@ LL | fn ptx_ptr(f: extern "ptx-kernel" fn()) {
154
274
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
155
275
= note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
156
276
277
+ Future breakage diagnostic:
278
+ warning: the calling convention "gpu-kernel" is not supported on this target
279
+ --> $DIR/unsupported.rs:49:15
280
+ |
281
+ LL | fn gpu_ptr(f: extern "gpu-kernel" fn()) {
282
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
283
+ |
284
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
285
+ = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
286
+ = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
287
+
157
288
Future breakage diagnostic:
158
289
warning: the calling convention "aapcs" is not supported on this target
159
- --> $DIR/unsupported.rs:50 :17
290
+ --> $DIR/unsupported.rs:60 :17
160
291
|
161
292
LL | fn aapcs_ptr(f: extern "aapcs" fn()) {
162
293
| ^^^^^^^^^^^^^^^^^^^
@@ -167,7 +298,7 @@ LL | fn aapcs_ptr(f: extern "aapcs" fn()) {
167
298
168
299
Future breakage diagnostic:
169
300
warning: the calling convention "msp430-interrupt" is not supported on this target
170
- --> $DIR/unsupported.rs:60 :18
301
+ --> $DIR/unsupported.rs:70 :18
171
302
|
172
303
LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) {
173
304
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -178,7 +309,7 @@ LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) {
178
309
179
310
Future breakage diagnostic:
180
311
warning: the calling convention "avr-interrupt" is not supported on this target
181
- --> $DIR/unsupported.rs:70 :15
312
+ --> $DIR/unsupported.rs:81 :15
182
313
|
183
314
LL | fn avr_ptr(f: extern "avr-interrupt" fn()) {
184
315
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -189,18 +320,29 @@ LL | fn avr_ptr(f: extern "avr-interrupt" fn()) {
189
320
190
321
Future breakage diagnostic:
191
322
warning: the calling convention "riscv-interrupt-m" is not supported on this target
192
- --> $DIR/unsupported.rs:80:17
323
+ --> $DIR/unsupported.rs:92:19
324
+ |
325
+ LL | fn riscv_m_ptr(f: extern "riscv-interrupt-m" fn()) {
326
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
327
+ |
328
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
329
+ = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
330
+ = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
331
+
332
+ Future breakage diagnostic:
333
+ warning: the calling convention "riscv-interrupt-s" is not supported on this target
334
+ --> $DIR/unsupported.rs:103:19
193
335
|
194
- LL | fn riscv_ptr (f: extern "riscv-interrupt-m " fn()) {
195
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
336
+ LL | fn riscv_s_ptr (f: extern "riscv-interrupt-s " fn()) {
337
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
196
338
|
197
339
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
198
340
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
199
341
= note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
200
342
201
343
Future breakage diagnostic:
202
344
warning: the calling convention "C-cmse-nonsecure-call" is not supported on this target
203
- --> $DIR/unsupported.rs:153 :21
345
+ --> $DIR/unsupported.rs:178 :21
204
346
|
205
347
LL | fn cmse_call_ptr(f: extern "C-cmse-nonsecure-call" fn()) {
206
348
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -211,7 +353,7 @@ LL | fn cmse_call_ptr(f: extern "C-cmse-nonsecure-call" fn()) {
211
353
212
354
Future breakage diagnostic:
213
355
warning: the calling convention "C-cmse-nonsecure-entry" is not supported on this target
214
- --> $DIR/unsupported.rs:161 :22
356
+ --> $DIR/unsupported.rs:186 :22
215
357
|
216
358
LL | fn cmse_entry_ptr(f: extern "C-cmse-nonsecure-entry" fn()) {
217
359
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments