@@ -206,3 +206,113 @@ LL | extern "C-cmse-nonsecure-entry" fn cmse_entry() {}
206206error: aborting due to 19 previous errors; 10 warnings emitted
207207
208208For more information about this error, try `rustc --explain E0570`.
209+ Future incompatibility report: Future breakage diagnostic:
210+ warning: the calling convention "ptx-kernel" is not supported on this target
211+ --> $DIR/unsupported.rs:36:15
212+ |
213+ LL | fn ptx_ptr(f: extern "ptx-kernel" fn()) {
214+ | ^^^^^^^^^^^^^^^^^^^^^^^^
215+ |
216+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
217+ = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
218+ = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
219+
220+ Future breakage diagnostic:
221+ warning: the calling convention "aapcs" is not supported on this target
222+ --> $DIR/unsupported.rs:52:17
223+ |
224+ LL | fn aapcs_ptr(f: extern "aapcs" fn()) {
225+ | ^^^^^^^^^^^^^^^^^^^
226+ |
227+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
228+ = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
229+ = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
230+
231+ Future breakage diagnostic:
232+ warning: the calling convention "msp430-interrupt" is not supported on this target
233+ --> $DIR/unsupported.rs:74:18
234+ |
235+ LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) {
236+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
237+ |
238+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
239+ = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
240+ = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
241+
242+ Future breakage diagnostic:
243+ warning: the calling convention "avr-interrupt" is not supported on this target
244+ --> $DIR/unsupported.rs:84:15
245+ |
246+ LL | fn avr_ptr(f: extern "avr-interrupt" fn()) {
247+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
248+ |
249+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
250+ = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
251+ = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
252+
253+ Future breakage diagnostic:
254+ warning: the calling convention "riscv-interrupt-m" is not supported on this target
255+ --> $DIR/unsupported.rs:97:17
256+ |
257+ LL | fn riscv_ptr(f: extern "riscv-interrupt-m" fn()) {
258+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
259+ |
260+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
261+ = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
262+ = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
263+
264+ Future breakage diagnostic:
265+ warning: the calling convention "x86-interrupt" is not supported on this target
266+ --> $DIR/unsupported.rs:119:15
267+ |
268+ LL | fn x86_ptr(f: extern "x86-interrupt" fn()) {
269+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
270+ |
271+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
272+ = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
273+ = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
274+
275+ Future breakage diagnostic:
276+ warning: the calling convention "thiscall" is not supported on this target
277+ --> $DIR/unsupported.rs:142:20
278+ |
279+ LL | fn thiscall_ptr(f: extern "thiscall" fn()) {
280+ | ^^^^^^^^^^^^^^^^^^^^^^
281+ |
282+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
283+ = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
284+ = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
285+
286+ Future breakage diagnostic:
287+ warning: the calling convention "stdcall" is not supported on this target
288+ --> $DIR/unsupported.rs:168:19
289+ |
290+ LL | fn stdcall_ptr(f: extern "stdcall" fn()) {
291+ | ^^^^^^^^^^^^^^^^^^^^^
292+ |
293+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
294+ = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
295+ = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
296+
297+ Future breakage diagnostic:
298+ warning: the calling convention "C-cmse-nonsecure-call" is not supported on this target
299+ --> $DIR/unsupported.rs:188:21
300+ |
301+ LL | fn cmse_call_ptr(f: extern "C-cmse-nonsecure-call" fn()) {
302+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
303+ |
304+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
305+ = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
306+ = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
307+
308+ Future breakage diagnostic:
309+ warning: the calling convention "C-cmse-nonsecure-entry" is not supported on this target
310+ --> $DIR/unsupported.rs:196:22
311+ |
312+ LL | fn cmse_entry_ptr(f: extern "C-cmse-nonsecure-entry" fn()) {
313+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
314+ |
315+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
316+ = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260>
317+ = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default
318+
0 commit comments