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 #129935 - RalfJung:unsupported_calling_conventions, r=compiler-errors
make unsupported_calling_conventions a hard error
This has been a future-compat lint (not shown in dependencies) since Rust 1.55, released 3 years ago. Hopefully that was enough time so this can be made a hard error now. Given that long timeframe, I think it's justified to skip the "show in dependencies" stage. There were [not many crates hitting this](#86231 (comment)) even when the lint was originally added.
This should get cratered, and I assume then it needs a t-compiler FCP. (t-compiler because this looks entirely like an implementation oversight -- for the vast majority of ABIs, we already have a hard error, but some were initially missed, and we are finally fixing that.)
Fixes#87678
Copy file name to clipboardexpand all lines: tests/ui/abi/unsupported.aarch64.stderr
+9-16
Original file line number
Diff line number
Diff line change
@@ -105,26 +105,22 @@ LL | extern "thiscall" {}
105
105
| ^^^^^^^^^^^^^^^^^^^^
106
106
107
107
warning: the calling convention "stdcall" is not supported on this target
108
-
--> $DIR/unsupported.rs:170:19
108
+
--> $DIR/unsupported.rs:165:19
109
109
|
110
110
LL | fn stdcall_ptr(f: extern "stdcall" fn()) {
111
111
| ^^^^^^^^^^^^^^^^^^^^^
112
112
|
113
113
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
114
114
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
115
115
116
-
warning: use of calling convention not supported on this target
117
-
--> $DIR/unsupported.rs:183:1
116
+
error[E0570]: `"stdcall"` is not a supported ABI for the current target
117
+
--> $DIR/unsupported.rs:178:1
118
118
|
119
119
LL | extern "stdcall" {}
120
120
| ^^^^^^^^^^^^^^^^^^^
121
-
|
122
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
123
-
= note: for more information, see issue #87678 <https://github.com/rust-lang/rust/issues/87678>
124
-
= note: `#[warn(unsupported_calling_conventions)]` on by default
125
121
126
122
warning: the calling convention "C-cmse-nonsecure-call" is not supported on this target
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
134
130
135
131
warning: the calling convention "C-cmse-nonsecure-entry" is not supported on this target
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
143
139
144
140
error[E0570]: `"C-cmse-nonsecure-entry"` is not a supported ABI for the current target
145
-
--> $DIR/unsupported.rs:208:1
141
+
--> $DIR/unsupported.rs:198:1
146
142
|
147
143
LL | extern "C-cmse-nonsecure-entry" {}
148
144
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -189,21 +185,18 @@ error[E0570]: `"thiscall"` is not a supported ABI for the current target
189
185
LL | extern "thiscall" fn thiscall() {}
190
186
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
191
187
192
-
warning: use of calling convention not supported on this target
188
+
error[E0570]: `"stdcall"` is not a supported ABI for the current target
193
189
--> $DIR/unsupported.rs:159:1
194
190
|
195
191
LL | extern "stdcall" fn stdcall() {}
196
192
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
197
-
|
198
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
199
-
= note: for more information, see issue #87678 <https://github.com/rust-lang/rust/issues/87678>
200
193
201
194
error[E0570]: `"C-cmse-nonsecure-entry"` is not a supported ABI for the current target
Copy file name to clipboardexpand all lines: tests/ui/abi/unsupported.arm.stderr
+9-16
Original file line number
Diff line number
Diff line change
@@ -90,26 +90,22 @@ LL | extern "thiscall" {}
90
90
| ^^^^^^^^^^^^^^^^^^^^
91
91
92
92
warning: the calling convention "stdcall" is not supported on this target
93
-
--> $DIR/unsupported.rs:170:19
93
+
--> $DIR/unsupported.rs:165:19
94
94
|
95
95
LL | fn stdcall_ptr(f: extern "stdcall" fn()) {
96
96
| ^^^^^^^^^^^^^^^^^^^^^
97
97
|
98
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
99
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
100
100
101
-
warning: use of calling convention not supported on this target
102
-
--> $DIR/unsupported.rs:183:1
101
+
error[E0570]: `"stdcall"` is not a supported ABI for the current target
102
+
--> $DIR/unsupported.rs:178:1
103
103
|
104
104
LL | extern "stdcall" {}
105
105
| ^^^^^^^^^^^^^^^^^^^
106
-
|
107
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
108
-
= note: for more information, see issue #87678 <https://github.com/rust-lang/rust/issues/87678>
109
-
= note: `#[warn(unsupported_calling_conventions)]` on by default
110
106
111
107
warning: the calling convention "C-cmse-nonsecure-call" is not supported on this target
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
119
115
120
116
warning: the calling convention "C-cmse-nonsecure-entry" is not supported on this target
= note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
128
124
129
125
error[E0570]: `"C-cmse-nonsecure-entry"` is not a supported ABI for the current target
130
-
--> $DIR/unsupported.rs:208:1
126
+
--> $DIR/unsupported.rs:198:1
131
127
|
132
128
LL | extern "C-cmse-nonsecure-entry" {}
133
129
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -168,21 +164,18 @@ error[E0570]: `"thiscall"` is not a supported ABI for the current target
168
164
LL | extern "thiscall" fn thiscall() {}
169
165
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
170
166
171
-
warning: use of calling convention not supported on this target
167
+
error[E0570]: `"stdcall"` is not a supported ABI for the current target
172
168
--> $DIR/unsupported.rs:159:1
173
169
|
174
170
LL | extern "stdcall" fn stdcall() {}
175
171
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
176
-
|
177
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
178
-
= note: for more information, see issue #87678 <https://github.com/rust-lang/rust/issues/87678>
179
172
180
173
error[E0570]: `"C-cmse-nonsecure-entry"` is not a supported ABI for the current target
0 commit comments