Skip to content

Commit 6c2a1a9

Browse files
committed
avoid repeating error annotations in test file
1 parent b8f4367 commit 6c2a1a9

8 files changed

+290
-418
lines changed

tests/ui/abi/unsupported.aarch64.stderr

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LL | extern "ptx-kernel" {}
1515
| ^^^^^^^^^^^^^^^^^^^^^^
1616

1717
warning: the calling convention "aapcs" is not supported on this target
18-
--> $DIR/unsupported.rs:55:17
18+
--> $DIR/unsupported.rs:50:17
1919
|
2020
LL | fn aapcs_ptr(f: extern "aapcs" fn()) {
2121
| ^^^^^^^^^^^^^^^^^^^
@@ -24,13 +24,13 @@ LL | fn aapcs_ptr(f: extern "aapcs" fn()) {
2424
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
2525

2626
error[E0570]: `"aapcs"` is not a supported ABI for the current target
27-
--> $DIR/unsupported.rs:70:1
27+
--> $DIR/unsupported.rs:55:1
2828
|
2929
LL | extern "aapcs" {}
3030
| ^^^^^^^^^^^^^^^^^
3131

3232
warning: the calling convention "msp430-interrupt" is not supported on this target
33-
--> $DIR/unsupported.rs:80:18
33+
--> $DIR/unsupported.rs:60:18
3434
|
3535
LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) {
3636
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -39,13 +39,13 @@ LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) {
3939
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
4040

4141
error[E0570]: `"msp430-interrupt"` is not a supported ABI for the current target
42-
--> $DIR/unsupported.rs:85:1
42+
--> $DIR/unsupported.rs:65:1
4343
|
4444
LL | extern "msp430-interrupt" {}
4545
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4646

4747
warning: the calling convention "avr-interrupt" is not supported on this target
48-
--> $DIR/unsupported.rs:90:15
48+
--> $DIR/unsupported.rs:70:15
4949
|
5050
LL | fn avr_ptr(f: extern "avr-interrupt" fn()) {
5151
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -54,13 +54,13 @@ LL | fn avr_ptr(f: extern "avr-interrupt" fn()) {
5454
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
5555

5656
error[E0570]: `"avr-interrupt"` is not a supported ABI for the current target
57-
--> $DIR/unsupported.rs:95:1
57+
--> $DIR/unsupported.rs:75:1
5858
|
5959
LL | extern "avr-interrupt" {}
6060
| ^^^^^^^^^^^^^^^^^^^^^^^^^
6161

6262
warning: the calling convention "riscv-interrupt-m" is not supported on this target
63-
--> $DIR/unsupported.rs:104:17
63+
--> $DIR/unsupported.rs:80:17
6464
|
6565
LL | fn riscv_ptr(f: extern "riscv-interrupt-m" fn()) {
6666
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -69,13 +69,13 @@ LL | fn riscv_ptr(f: extern "riscv-interrupt-m" fn()) {
6969
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
7070

7171
error[E0570]: `"riscv-interrupt-m"` is not a supported ABI for the current target
72-
--> $DIR/unsupported.rs:117:1
72+
--> $DIR/unsupported.rs:85:1
7373
|
7474
LL | extern "riscv-interrupt-m" {}
7575
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7676

7777
warning: the calling convention "x86-interrupt" is not supported on this target
78-
--> $DIR/unsupported.rs:129:15
78+
--> $DIR/unsupported.rs:90:15
7979
|
8080
LL | fn x86_ptr(f: extern "x86-interrupt" fn()) {
8181
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -84,13 +84,13 @@ LL | fn x86_ptr(f: extern "x86-interrupt" fn()) {
8484
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
8585

8686
error[E0570]: `"x86-interrupt"` is not a supported ABI for the current target
87-
--> $DIR/unsupported.rs:140:1
87+
--> $DIR/unsupported.rs:95:1
8888
|
8989
LL | extern "x86-interrupt" {}
9090
| ^^^^^^^^^^^^^^^^^^^^^^^^^
9191

9292
warning: the calling convention "thiscall" is not supported on this target
93-
--> $DIR/unsupported.rs:153:20
93+
--> $DIR/unsupported.rs:100:20
9494
|
9595
LL | fn thiscall_ptr(f: extern "thiscall" fn()) {
9696
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -99,13 +99,13 @@ LL | fn thiscall_ptr(f: extern "thiscall" fn()) {
9999
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
100100

101101
error[E0570]: `"thiscall"` is not a supported ABI for the current target
102-
--> $DIR/unsupported.rs:168:1
102+
--> $DIR/unsupported.rs:105:1
103103
|
104104
LL | extern "thiscall" {}
105105
| ^^^^^^^^^^^^^^^^^^^^
106106

107107
warning: the calling convention "stdcall" is not supported on this target
108-
--> $DIR/unsupported.rs:184:19
108+
--> $DIR/unsupported.rs:112:19
109109
|
110110
LL | fn stdcall_ptr(f: extern "stdcall" fn()) {
111111
| ^^^^^^^^^^^^^^^^^^^^^
@@ -114,13 +114,13 @@ LL | fn stdcall_ptr(f: extern "stdcall" fn()) {
114114
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
115115

116116
error[E0570]: `"stdcall"` is not a supported ABI for the current target
117-
--> $DIR/unsupported.rs:199:1
117+
--> $DIR/unsupported.rs:117:1
118118
|
119119
LL | extern "stdcall" {}
120120
| ^^^^^^^^^^^^^^^^^^^
121121

122122
warning: the calling convention "cdecl" is not supported on this target
123-
--> $DIR/unsupported.rs:221:17
123+
--> $DIR/unsupported.rs:125:17
124124
|
125125
LL | fn cdecl_ptr(f: extern "cdecl" fn()) {
126126
| ^^^^^^^^^^^^^^^^^^^
@@ -129,7 +129,7 @@ LL | fn cdecl_ptr(f: extern "cdecl" fn()) {
129129
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
130130

131131
warning: use of calling convention not supported on this target
132-
--> $DIR/unsupported.rs:236:1
132+
--> $DIR/unsupported.rs:130:1
133133
|
134134
LL | extern "cdecl" {}
135135
| ^^^^^^^^^^^^^^^^^
@@ -139,7 +139,7 @@ LL | extern "cdecl" {}
139139
= note: `#[warn(unsupported_calling_conventions)]` on by default
140140

141141
warning: the calling convention "vectorcall" is not supported on this target
142-
--> $DIR/unsupported.rs:255:22
142+
--> $DIR/unsupported.rs:136:22
143143
|
144144
LL | fn vectorcall_ptr(f: extern "vectorcall" fn()) {
145145
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -148,13 +148,13 @@ LL | fn vectorcall_ptr(f: extern "vectorcall" fn()) {
148148
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
149149

150150
error[E0570]: `"vectorcall"` is not a supported ABI for the current target
151-
--> $DIR/unsupported.rs:266:1
151+
--> $DIR/unsupported.rs:141:1
152152
|
153153
LL | extern "vectorcall" {}
154154
| ^^^^^^^^^^^^^^^^^^^^^^
155155

156156
warning: the calling convention "C-cmse-nonsecure-call" is not supported on this target
157-
--> $DIR/unsupported.rs:272:21
157+
--> $DIR/unsupported.rs:144:21
158158
|
159159
LL | fn cmse_call_ptr(f: extern "C-cmse-nonsecure-call" fn()) {
160160
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -163,7 +163,7 @@ LL | fn cmse_call_ptr(f: extern "C-cmse-nonsecure-call" fn()) {
163163
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
164164

165165
warning: the calling convention "C-cmse-nonsecure-entry" is not supported on this target
166-
--> $DIR/unsupported.rs:280:22
166+
--> $DIR/unsupported.rs:152:22
167167
|
168168
LL | fn cmse_entry_ptr(f: extern "C-cmse-nonsecure-entry" fn()) {
169169
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -172,7 +172,7 @@ LL | fn cmse_entry_ptr(f: extern "C-cmse-nonsecure-entry" fn()) {
172172
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
173173

174174
error[E0570]: `"C-cmse-nonsecure-entry"` is not a supported ABI for the current target
175-
--> $DIR/unsupported.rs:285:1
175+
--> $DIR/unsupported.rs:157:1
176176
|
177177
LL | extern "C-cmse-nonsecure-entry" {}
178178
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -196,43 +196,43 @@ LL | extern "aapcs" fn aapcs() {}
196196
| ^^^^^^^^^^^^^^^^^^^^^^^^^
197197

198198
error[E0570]: `"msp430-interrupt"` is not a supported ABI for the current target
199-
--> $DIR/unsupported.rs:78:1
199+
--> $DIR/unsupported.rs:58:1
200200
|
201201
LL | extern "msp430-interrupt" fn msp430() {}
202202
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
203203

204204
error[E0570]: `"avr-interrupt"` is not a supported ABI for the current target
205-
--> $DIR/unsupported.rs:88:1
205+
--> $DIR/unsupported.rs:68:1
206206
|
207207
LL | extern "avr-interrupt" fn avr() {}
208208
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
209209

210210
error[E0570]: `"riscv-interrupt-m"` is not a supported ABI for the current target
211-
--> $DIR/unsupported.rs:98:1
211+
--> $DIR/unsupported.rs:78:1
212212
|
213213
LL | extern "riscv-interrupt-m" fn riscv() {}
214214
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
215215

216216
error[E0570]: `"x86-interrupt"` is not a supported ABI for the current target
217-
--> $DIR/unsupported.rs:124:1
217+
--> $DIR/unsupported.rs:88:1
218218
|
219219
LL | extern "x86-interrupt" fn x86() {}
220220
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
221221

222222
error[E0570]: `"thiscall"` is not a supported ABI for the current target
223-
--> $DIR/unsupported.rs:146:1
223+
--> $DIR/unsupported.rs:98:1
224224
|
225225
LL | extern "thiscall" fn thiscall() {}
226226
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
227227

228228
error[E0570]: `"stdcall"` is not a supported ABI for the current target
229-
--> $DIR/unsupported.rs:176:1
229+
--> $DIR/unsupported.rs:108:1
230230
|
231231
LL | extern "stdcall" fn stdcall() {}
232232
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
233233

234234
warning: use of calling convention not supported on this target
235-
--> $DIR/unsupported.rs:208:1
235+
--> $DIR/unsupported.rs:122:1
236236
|
237237
LL | extern "cdecl" fn cdecl() {}
238238
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -241,13 +241,13 @@ LL | extern "cdecl" fn cdecl() {}
241241
= note: for more information, see issue #137018 <https://github.com/rust-lang/rust/issues/137018>
242242

243243
error[E0570]: `"vectorcall"` is not a supported ABI for the current target
244-
--> $DIR/unsupported.rs:250:1
244+
--> $DIR/unsupported.rs:134:1
245245
|
246246
LL | extern "vectorcall" fn vectorcall() {}
247247
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
248248

249249
error[E0570]: `"C-cmse-nonsecure-entry"` is not a supported ABI for the current target
250-
--> $DIR/unsupported.rs:278:1
250+
--> $DIR/unsupported.rs:150:1
251251
|
252252
LL | extern "C-cmse-nonsecure-entry" fn cmse_entry() {}
253253
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -268,7 +268,7 @@ LL | fn ptx_ptr(f: extern "ptx-kernel" fn()) {
268268

269269
Future breakage diagnostic:
270270
warning: the calling convention "aapcs" is not supported on this target
271-
--> $DIR/unsupported.rs:55:17
271+
--> $DIR/unsupported.rs:50:17
272272
|
273273
LL | fn aapcs_ptr(f: extern "aapcs" fn()) {
274274
| ^^^^^^^^^^^^^^^^^^^
@@ -279,7 +279,7 @@ LL | fn aapcs_ptr(f: extern "aapcs" fn()) {
279279

280280
Future breakage diagnostic:
281281
warning: the calling convention "msp430-interrupt" is not supported on this target
282-
--> $DIR/unsupported.rs:80:18
282+
--> $DIR/unsupported.rs:60:18
283283
|
284284
LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) {
285285
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -290,7 +290,7 @@ LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) {
290290

291291
Future breakage diagnostic:
292292
warning: the calling convention "avr-interrupt" is not supported on this target
293-
--> $DIR/unsupported.rs:90:15
293+
--> $DIR/unsupported.rs:70:15
294294
|
295295
LL | fn avr_ptr(f: extern "avr-interrupt" fn()) {
296296
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -301,7 +301,7 @@ LL | fn avr_ptr(f: extern "avr-interrupt" fn()) {
301301

302302
Future breakage diagnostic:
303303
warning: the calling convention "riscv-interrupt-m" is not supported on this target
304-
--> $DIR/unsupported.rs:104:17
304+
--> $DIR/unsupported.rs:80:17
305305
|
306306
LL | fn riscv_ptr(f: extern "riscv-interrupt-m" fn()) {
307307
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -312,7 +312,7 @@ LL | fn riscv_ptr(f: extern "riscv-interrupt-m" fn()) {
312312

313313
Future breakage diagnostic:
314314
warning: the calling convention "x86-interrupt" is not supported on this target
315-
--> $DIR/unsupported.rs:129:15
315+
--> $DIR/unsupported.rs:90:15
316316
|
317317
LL | fn x86_ptr(f: extern "x86-interrupt" fn()) {
318318
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -323,7 +323,7 @@ LL | fn x86_ptr(f: extern "x86-interrupt" fn()) {
323323

324324
Future breakage diagnostic:
325325
warning: the calling convention "thiscall" is not supported on this target
326-
--> $DIR/unsupported.rs:153:20
326+
--> $DIR/unsupported.rs:100:20
327327
|
328328
LL | fn thiscall_ptr(f: extern "thiscall" fn()) {
329329
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -334,7 +334,7 @@ LL | fn thiscall_ptr(f: extern "thiscall" fn()) {
334334

335335
Future breakage diagnostic:
336336
warning: the calling convention "stdcall" is not supported on this target
337-
--> $DIR/unsupported.rs:184:19
337+
--> $DIR/unsupported.rs:112:19
338338
|
339339
LL | fn stdcall_ptr(f: extern "stdcall" fn()) {
340340
| ^^^^^^^^^^^^^^^^^^^^^
@@ -345,7 +345,7 @@ LL | fn stdcall_ptr(f: extern "stdcall" fn()) {
345345

346346
Future breakage diagnostic:
347347
warning: the calling convention "cdecl" is not supported on this target
348-
--> $DIR/unsupported.rs:221:17
348+
--> $DIR/unsupported.rs:125:17
349349
|
350350
LL | fn cdecl_ptr(f: extern "cdecl" fn()) {
351351
| ^^^^^^^^^^^^^^^^^^^
@@ -356,7 +356,7 @@ LL | fn cdecl_ptr(f: extern "cdecl" fn()) {
356356

357357
Future breakage diagnostic:
358358
warning: use of calling convention not supported on this target
359-
--> $DIR/unsupported.rs:236:1
359+
--> $DIR/unsupported.rs:130:1
360360
|
361361
LL | extern "cdecl" {}
362362
| ^^^^^^^^^^^^^^^^^
@@ -367,7 +367,7 @@ LL | extern "cdecl" {}
367367

368368
Future breakage diagnostic:
369369
warning: the calling convention "vectorcall" is not supported on this target
370-
--> $DIR/unsupported.rs:255:22
370+
--> $DIR/unsupported.rs:136:22
371371
|
372372
LL | fn vectorcall_ptr(f: extern "vectorcall" fn()) {
373373
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -378,7 +378,7 @@ LL | fn vectorcall_ptr(f: extern "vectorcall" fn()) {
378378

379379
Future breakage diagnostic:
380380
warning: the calling convention "C-cmse-nonsecure-call" is not supported on this target
381-
--> $DIR/unsupported.rs:272:21
381+
--> $DIR/unsupported.rs:144:21
382382
|
383383
LL | fn cmse_call_ptr(f: extern "C-cmse-nonsecure-call" fn()) {
384384
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -389,7 +389,7 @@ LL | fn cmse_call_ptr(f: extern "C-cmse-nonsecure-call" fn()) {
389389

390390
Future breakage diagnostic:
391391
warning: the calling convention "C-cmse-nonsecure-entry" is not supported on this target
392-
--> $DIR/unsupported.rs:280:22
392+
--> $DIR/unsupported.rs:152:22
393393
|
394394
LL | fn cmse_entry_ptr(f: extern "C-cmse-nonsecure-entry" fn()) {
395395
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -400,7 +400,7 @@ LL | fn cmse_entry_ptr(f: extern "C-cmse-nonsecure-entry" fn()) {
400400

401401
Future breakage diagnostic:
402402
warning: use of calling convention not supported on this target
403-
--> $DIR/unsupported.rs:208:1
403+
--> $DIR/unsupported.rs:122:1
404404
|
405405
LL | extern "cdecl" fn cdecl() {}
406406
| ^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)