Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 6805183

Browse files
committed
Fix unsupported calling conv tests
1 parent 94399e0 commit 6805183

File tree

4 files changed

+129
-105
lines changed

4 files changed

+129
-105
lines changed
Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: the calling convention "ptx-kernel" is not supported on this target
2-
--> $DIR/unsupported.rs:35:15
2+
--> $DIR/unsupported.rs:36:15
33
|
44
LL | fn ptx_ptr(f: extern "ptx-kernel" fn()) {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -9,7 +9,7 @@ LL | fn ptx_ptr(f: extern "ptx-kernel" fn()) {
99
= note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
1010

1111
error[E0570]: `"ptx-kernel"` is not a supported ABI for the current target
12-
--> $DIR/unsupported.rs:40:1
12+
--> $DIR/unsupported.rs:41:1
1313
|
1414
LL | extern "ptx-kernel" {}
1515
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -30,7 +30,7 @@ LL | extern "aapcs" {}
3030
| ^^^^^^^^^^^^^^^^^
3131

3232
warning: the calling convention "msp430-interrupt" is not supported on this target
33-
--> $DIR/unsupported.rs:71:18
33+
--> $DIR/unsupported.rs:74: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:76:1
42+
--> $DIR/unsupported.rs:79: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:81:15
48+
--> $DIR/unsupported.rs:84: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:86:1
57+
--> $DIR/unsupported.rs:89: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:94:17
63+
--> $DIR/unsupported.rs:97: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:105:1
72+
--> $DIR/unsupported.rs:108: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:116:15
78+
--> $DIR/unsupported.rs:119: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:127:1
87+
--> $DIR/unsupported.rs:130: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:139:20
93+
--> $DIR/unsupported.rs:142: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:152:1
102+
--> $DIR/unsupported.rs:155:1
103103
|
104104
LL | extern "thiscall" {}
105105
| ^^^^^^^^^^^^^^^^^^^^
106106

107107
warning: the calling convention "stdcall" is not supported on this target
108-
--> $DIR/unsupported.rs:165:19
108+
--> $DIR/unsupported.rs:168: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:178:1
117+
--> $DIR/unsupported.rs:181:1
118118
|
119119
LL | extern "stdcall" {}
120120
| ^^^^^^^^^^^^^^^^^^^
121121

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

131131
warning: the calling convention "C-cmse-nonsecure-entry" is not supported on this target
132-
--> $DIR/unsupported.rs:193:22
132+
--> $DIR/unsupported.rs:196:22
133133
|
134134
LL | fn cmse_entry_ptr(f: extern "C-cmse-nonsecure-entry" fn()) {
135135
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -138,65 +138,71 @@ LL | fn cmse_entry_ptr(f: extern "C-cmse-nonsecure-entry" fn()) {
138138
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
139139

140140
error[E0570]: `"C-cmse-nonsecure-entry"` is not a supported ABI for the current target
141-
--> $DIR/unsupported.rs:198:1
141+
--> $DIR/unsupported.rs:201:1
142142
|
143143
LL | extern "C-cmse-nonsecure-entry" {}
144144
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
145145

146146
error[E0570]: `"ptx-kernel"` is not a supported ABI for the current target
147-
--> $DIR/unsupported.rs:33:1
147+
--> $DIR/unsupported.rs:36:1
148148
|
149149
LL | extern "ptx-kernel" fn ptx() {}
150150
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
151151

152-
error[E0570]: `"aapcs"` is not a supported ABI for the current target
152+
error[E0570]: `"amdgpu-kernel"` is not a supported ABI for the current target
153153
--> $DIR/unsupported.rs:43:1
154154
|
155+
LL | extern "amdgpu-kernel" fn amdgpu() {}
156+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
157+
158+
error[E0570]: `"aapcs"` is not a supported ABI for the current target
159+
--> $DIR/unsupported.rs:46:1
160+
|
155161
LL | extern "aapcs" fn aapcs() {}
156162
| ^^^^^^^^^^^^^^^^^^^^^^^^^
157163

158164
error[E0570]: `"msp430-interrupt"` is not a supported ABI for the current target
159-
--> $DIR/unsupported.rs:69:1
165+
--> $DIR/unsupported.rs:72:1
160166
|
161167
LL | extern "msp430-interrupt" fn msp430() {}
162168
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
163169

164170
error[E0570]: `"avr-interrupt"` is not a supported ABI for the current target
165-
--> $DIR/unsupported.rs:79:1
171+
--> $DIR/unsupported.rs:82:1
166172
|
167173
LL | extern "avr-interrupt" fn avr() {}
168174
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
169175

170176
error[E0570]: `"riscv-interrupt-m"` is not a supported ABI for the current target
171-
--> $DIR/unsupported.rs:89:1
177+
--> $DIR/unsupported.rs:92:1
172178
|
173179
LL | extern "riscv-interrupt-m" fn riscv() {}
174180
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
175181

176182
error[E0570]: `"x86-interrupt"` is not a supported ABI for the current target
177-
--> $DIR/unsupported.rs:111:1
183+
--> $DIR/unsupported.rs:114:1
178184
|
179185
LL | extern "x86-interrupt" fn x86() {}
180186
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
181187

182188
error[E0570]: `"thiscall"` is not a supported ABI for the current target
183-
--> $DIR/unsupported.rs:133:1
189+
--> $DIR/unsupported.rs:136:1
184190
|
185191
LL | extern "thiscall" fn thiscall() {}
186192
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
187193

188194
error[E0570]: `"stdcall"` is not a supported ABI for the current target
189-
--> $DIR/unsupported.rs:159:1
195+
--> $DIR/unsupported.rs:162:1
190196
|
191197
LL | extern "stdcall" fn stdcall() {}
192198
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
193199

194200
error[E0570]: `"C-cmse-nonsecure-entry"` is not a supported ABI for the current target
195-
--> $DIR/unsupported.rs:191:1
201+
--> $DIR/unsupported.rs:194:1
196202
|
197203
LL | extern "C-cmse-nonsecure-entry" fn cmse_entry() {}
198204
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
199205

200-
error: aborting due to 18 previous errors; 10 warnings emitted
206+
error: aborting due to 19 previous errors; 10 warnings emitted
201207

202208
For more information about this error, try `rustc --explain E0570`.

0 commit comments

Comments
 (0)