@@ -118,9 +118,19 @@ error[E0570]: `"stdcall"` is not a supported ABI for the current target
118
118
|
119
119
LL | extern "stdcall" {}
120
120
| ^^^^^^^^^^^^^^^^^^^
121
+ |
122
+ = help: if you need `extern "stdcall"` on win32 and `extern "C"` everywhere else, use `extern "system"`
123
+
124
+ error[E0570]: `"stdcall-unwind"` is not a supported ABI for the current target
125
+ --> $DIR/unsupported.rs:121:1
126
+ |
127
+ LL | extern "stdcall-unwind" {}
128
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
129
+ |
130
+ = help: if you need `extern "stdcall-unwind"` on win32 and `extern "C-unwind"` everywhere else, use `extern "system-unwind"`
121
131
122
132
warning: the calling convention "cdecl" is not supported on this target
123
- --> $DIR/unsupported.rs:125 :17
133
+ --> $DIR/unsupported.rs:129 :17
124
134
|
125
135
LL | fn cdecl_ptr(f: extern "cdecl" fn()) {
126
136
| ^^^^^^^^^^^^^^^^^^^
@@ -129,17 +139,28 @@ LL | fn cdecl_ptr(f: extern "cdecl" fn()) {
129
139
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
130
140
131
141
warning: use of calling convention not supported on this target
132
- --> $DIR/unsupported.rs:130 :1
142
+ --> $DIR/unsupported.rs:134 :1
133
143
|
134
144
LL | extern "cdecl" {}
135
145
| ^^^^^^^^^^^^^^^^^
136
146
|
137
147
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
138
148
= note: for more information, see issue #137018 <https://github.com/rust-lang/rust/issues/137018>
149
+ = help: use `extern "C"` instead
139
150
= note: `#[warn(unsupported_calling_conventions)]` on by default
140
151
152
+ warning: use of calling convention not supported on this target
153
+ --> $DIR/unsupported.rs:137:1
154
+ |
155
+ LL | extern "cdecl-unwind" {}
156
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
157
+ |
158
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
159
+ = note: for more information, see issue #137018 <https://github.com/rust-lang/rust/issues/137018>
160
+ = help: use `extern "C-unwind"` instead
161
+
141
162
warning: the calling convention "vectorcall" is not supported on this target
142
- --> $DIR/unsupported.rs:136 :22
163
+ --> $DIR/unsupported.rs:143 :22
143
164
|
144
165
LL | fn vectorcall_ptr(f: extern "vectorcall" fn()) {
145
166
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -148,13 +169,13 @@ LL | fn vectorcall_ptr(f: extern "vectorcall" fn()) {
148
169
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
149
170
150
171
error[E0570]: `"vectorcall"` is not a supported ABI for the current target
151
- --> $DIR/unsupported.rs:141 :1
172
+ --> $DIR/unsupported.rs:148 :1
152
173
|
153
174
LL | extern "vectorcall" {}
154
175
| ^^^^^^^^^^^^^^^^^^^^^^
155
176
156
177
warning: the calling convention "C-cmse-nonsecure-call" is not supported on this target
157
- --> $DIR/unsupported.rs:144 :21
178
+ --> $DIR/unsupported.rs:151 :21
158
179
|
159
180
LL | fn cmse_call_ptr(f: extern "C-cmse-nonsecure-call" fn()) {
160
181
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -163,7 +184,7 @@ LL | fn cmse_call_ptr(f: extern "C-cmse-nonsecure-call" fn()) {
163
184
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
164
185
165
186
warning: the calling convention "C-cmse-nonsecure-entry" is not supported on this target
166
- --> $DIR/unsupported.rs:152 :22
187
+ --> $DIR/unsupported.rs:159 :22
167
188
|
168
189
LL | fn cmse_entry_ptr(f: extern "C-cmse-nonsecure-entry" fn()) {
169
190
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -172,7 +193,7 @@ LL | fn cmse_entry_ptr(f: extern "C-cmse-nonsecure-entry" fn()) {
172
193
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
173
194
174
195
error[E0570]: `"C-cmse-nonsecure-entry"` is not a supported ABI for the current target
175
- --> $DIR/unsupported.rs:157 :1
196
+ --> $DIR/unsupported.rs:164 :1
176
197
|
177
198
LL | extern "C-cmse-nonsecure-entry" {}
178
199
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -230,29 +251,32 @@ error[E0570]: `"stdcall"` is not a supported ABI for the current target
230
251
|
231
252
LL | extern "stdcall" fn stdcall() {}
232
253
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
254
+ |
255
+ = help: if you need `extern "stdcall"` on win32 and `extern "C"` everywhere else, use `extern "system"`
233
256
234
257
warning: use of calling convention not supported on this target
235
- --> $DIR/unsupported.rs:122 :1
258
+ --> $DIR/unsupported.rs:126 :1
236
259
|
237
260
LL | extern "cdecl" fn cdecl() {}
238
261
| ^^^^^^^^^^^^^^^^^^^^^^^^^
239
262
|
240
263
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
241
264
= note: for more information, see issue #137018 <https://github.com/rust-lang/rust/issues/137018>
265
+ = help: use `extern "C"` instead
242
266
243
267
error[E0570]: `"vectorcall"` is not a supported ABI for the current target
244
- --> $DIR/unsupported.rs:134 :1
268
+ --> $DIR/unsupported.rs:141 :1
245
269
|
246
270
LL | extern "vectorcall" fn vectorcall() {}
247
271
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
248
272
249
273
error[E0570]: `"C-cmse-nonsecure-entry"` is not a supported ABI for the current target
250
- --> $DIR/unsupported.rs:150 :1
274
+ --> $DIR/unsupported.rs:157 :1
251
275
|
252
276
LL | extern "C-cmse-nonsecure-entry" fn cmse_entry() {}
253
277
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
254
278
255
- error: aborting due to 21 previous errors; 14 warnings emitted
279
+ error: aborting due to 22 previous errors; 15 warnings emitted
256
280
257
281
For more information about this error, try `rustc --explain E0570`.
258
282
Future incompatibility report: Future breakage diagnostic:
@@ -345,7 +369,7 @@ LL | fn stdcall_ptr(f: extern "stdcall" fn()) {
345
369
346
370
Future breakage diagnostic:
347
371
warning: the calling convention "cdecl" is not supported on this target
348
- --> $DIR/unsupported.rs:125 :17
372
+ --> $DIR/unsupported.rs:129 :17
349
373
|
350
374
LL | fn cdecl_ptr(f: extern "cdecl" fn()) {
351
375
| ^^^^^^^^^^^^^^^^^^^
@@ -356,18 +380,31 @@ LL | fn cdecl_ptr(f: extern "cdecl" fn()) {
356
380
357
381
Future breakage diagnostic:
358
382
warning: use of calling convention not supported on this target
359
- --> $DIR/unsupported.rs:130 :1
383
+ --> $DIR/unsupported.rs:134 :1
360
384
|
361
385
LL | extern "cdecl" {}
362
386
| ^^^^^^^^^^^^^^^^^
363
387
|
364
388
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
365
389
= note: for more information, see issue #137018 <https://github.com/rust-lang/rust/issues/137018>
390
+ = help: use `extern "C"` instead
391
+ = note: `#[warn(unsupported_calling_conventions)]` on by default
392
+
393
+ Future breakage diagnostic:
394
+ warning: use of calling convention not supported on this target
395
+ --> $DIR/unsupported.rs:137:1
396
+ |
397
+ LL | extern "cdecl-unwind" {}
398
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
399
+ |
400
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
401
+ = note: for more information, see issue #137018 <https://github.com/rust-lang/rust/issues/137018>
402
+ = help: use `extern "C-unwind"` instead
366
403
= note: `#[warn(unsupported_calling_conventions)]` on by default
367
404
368
405
Future breakage diagnostic:
369
406
warning: the calling convention "vectorcall" is not supported on this target
370
- --> $DIR/unsupported.rs:136 :22
407
+ --> $DIR/unsupported.rs:143 :22
371
408
|
372
409
LL | fn vectorcall_ptr(f: extern "vectorcall" fn()) {
373
410
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -378,7 +415,7 @@ LL | fn vectorcall_ptr(f: extern "vectorcall" fn()) {
378
415
379
416
Future breakage diagnostic:
380
417
warning: the calling convention "C-cmse-nonsecure-call" is not supported on this target
381
- --> $DIR/unsupported.rs:144 :21
418
+ --> $DIR/unsupported.rs:151 :21
382
419
|
383
420
LL | fn cmse_call_ptr(f: extern "C-cmse-nonsecure-call" fn()) {
384
421
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -389,7 +426,7 @@ LL | fn cmse_call_ptr(f: extern "C-cmse-nonsecure-call" fn()) {
389
426
390
427
Future breakage diagnostic:
391
428
warning: the calling convention "C-cmse-nonsecure-entry" is not supported on this target
392
- --> $DIR/unsupported.rs:152 :22
429
+ --> $DIR/unsupported.rs:159 :22
393
430
|
394
431
LL | fn cmse_entry_ptr(f: extern "C-cmse-nonsecure-entry" fn()) {
395
432
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -400,12 +437,13 @@ LL | fn cmse_entry_ptr(f: extern "C-cmse-nonsecure-entry" fn()) {
400
437
401
438
Future breakage diagnostic:
402
439
warning: use of calling convention not supported on this target
403
- --> $DIR/unsupported.rs:122 :1
440
+ --> $DIR/unsupported.rs:126 :1
404
441
|
405
442
LL | extern "cdecl" fn cdecl() {}
406
443
| ^^^^^^^^^^^^^^^^^^^^^^^^^
407
444
|
408
445
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
409
446
= note: for more information, see issue #137018 <https://github.com/rust-lang/rust/issues/137018>
447
+ = help: use `extern "C"` instead
410
448
= note: `#[warn(unsupported_calling_conventions)]` on by default
411
449
0 commit comments