|
1 | | -warning: the calling convention "msp430-interrupt" is not supported on this target |
2 | | - --> $DIR/cannot-be-called.rs:60:18 |
| 1 | +error[E0570]: "msp430-interrupt" is not a supported ABI for the current target |
| 2 | + --> $DIR/cannot-be-called.rs:38:8 |
3 | 3 | | |
4 | | -LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) { |
5 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
6 | | - | |
7 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
8 | | - = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260> |
9 | | - = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default |
| 4 | +LL | extern "msp430-interrupt" fn msp430() {} |
| 5 | + | ^^^^^^^^^^^^^^^^^^ |
10 | 6 |
|
11 | | -warning: the calling convention "riscv-interrupt-m" is not supported on this target |
12 | | - --> $DIR/cannot-be-called.rs:74:19 |
13 | | - | |
14 | | -LL | fn riscv_m_ptr(f: extern "riscv-interrupt-m" fn()) { |
15 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 7 | +error[E0570]: "riscv-interrupt-m" is not a supported ABI for the current target |
| 8 | + --> $DIR/cannot-be-called.rs:42:8 |
16 | 9 | | |
17 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
18 | | - = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260> |
| 10 | +LL | extern "riscv-interrupt-m" fn riscv_m() {} |
| 11 | + | ^^^^^^^^^^^^^^^^^^^ |
19 | 12 |
|
20 | | -warning: the calling convention "riscv-interrupt-s" is not supported on this target |
21 | | - --> $DIR/cannot-be-called.rs:81:19 |
22 | | - | |
23 | | -LL | fn riscv_s_ptr(f: extern "riscv-interrupt-s" fn()) { |
24 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 13 | +error[E0570]: "riscv-interrupt-s" is not a supported ABI for the current target |
| 14 | + --> $DIR/cannot-be-called.rs:44:8 |
25 | 15 | | |
26 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
27 | | - = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260> |
| 16 | +LL | extern "riscv-interrupt-s" fn riscv_s() {} |
| 17 | + | ^^^^^^^^^^^^^^^^^^^ |
28 | 18 |
|
29 | | -warning: the calling convention "x86-interrupt" is not supported on this target |
30 | | - --> $DIR/cannot-be-called.rs:88:15 |
| 19 | +error[E0570]: "x86-interrupt" is not a supported ABI for the current target |
| 20 | + --> $DIR/cannot-be-called.rs:46:8 |
31 | 21 | | |
32 | | -LL | fn x86_ptr(f: extern "x86-interrupt" fn()) { |
33 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
34 | | - | |
35 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
36 | | - = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260> |
| 22 | +LL | extern "x86-interrupt" fn x86() {} |
| 23 | + | ^^^^^^^^^^^^^^^ |
37 | 24 |
|
38 | | -error[E0570]: `"msp430-interrupt"` is not a supported ABI for the current target |
39 | | - --> $DIR/cannot-be-called.rs:36:1 |
| 25 | +error[E0570]: "msp430-interrupt" is not a supported ABI for the current target |
| 26 | + --> $DIR/cannot-be-called.rs:65:25 |
40 | 27 | | |
41 | | -LL | extern "msp430-interrupt" fn msp430() {} |
42 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 28 | +LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) { |
| 29 | + | ^^^^^^^^^^^^^^^^^^ |
43 | 30 |
|
44 | | -error[E0570]: `"riscv-interrupt-m"` is not a supported ABI for the current target |
45 | | - --> $DIR/cannot-be-called.rs:40:1 |
| 31 | +error[E0570]: "riscv-interrupt-m" is not a supported ABI for the current target |
| 32 | + --> $DIR/cannot-be-called.rs:77:26 |
46 | 33 | | |
47 | | -LL | extern "riscv-interrupt-m" fn riscv_m() {} |
48 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 34 | +LL | fn riscv_m_ptr(f: extern "riscv-interrupt-m" fn()) { |
| 35 | + | ^^^^^^^^^^^^^^^^^^^ |
49 | 36 |
|
50 | | -error[E0570]: `"riscv-interrupt-s"` is not a supported ABI for the current target |
51 | | - --> $DIR/cannot-be-called.rs:42:1 |
| 37 | +error[E0570]: "riscv-interrupt-s" is not a supported ABI for the current target |
| 38 | + --> $DIR/cannot-be-called.rs:83:26 |
52 | 39 | | |
53 | | -LL | extern "riscv-interrupt-s" fn riscv_s() {} |
54 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 40 | +LL | fn riscv_s_ptr(f: extern "riscv-interrupt-s" fn()) { |
| 41 | + | ^^^^^^^^^^^^^^^^^^^ |
55 | 42 |
|
56 | | -error[E0570]: `"x86-interrupt"` is not a supported ABI for the current target |
57 | | - --> $DIR/cannot-be-called.rs:44:1 |
| 43 | +error[E0570]: "x86-interrupt" is not a supported ABI for the current target |
| 44 | + --> $DIR/cannot-be-called.rs:89:22 |
58 | 45 | | |
59 | | -LL | extern "x86-interrupt" fn x86() {} |
60 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 46 | +LL | fn x86_ptr(f: extern "x86-interrupt" fn()) { |
| 47 | + | ^^^^^^^^^^^^^^^ |
61 | 48 |
|
62 | 49 | error: functions with the "avr-interrupt" ABI cannot be called |
63 | | - --> $DIR/cannot-be-called.rs:50:5 |
| 50 | + --> $DIR/cannot-be-called.rs:53:5 |
64 | 51 | | |
65 | 52 | LL | avr(); |
66 | 53 | | ^^^^^ |
67 | 54 | | |
68 | 55 | note: an `extern "avr-interrupt"` function can only be called using inline assembly |
69 | | - --> $DIR/cannot-be-called.rs:50:5 |
| 56 | + --> $DIR/cannot-be-called.rs:53:5 |
70 | 57 | | |
71 | 58 | LL | avr(); |
72 | 59 | | ^^^^^ |
73 | 60 |
|
74 | 61 | error: functions with the "avr-interrupt" ABI cannot be called |
75 | | - --> $DIR/cannot-be-called.rs:70:5 |
| 62 | + --> $DIR/cannot-be-called.rs:73:5 |
76 | 63 | | |
77 | 64 | LL | f() |
78 | 65 | | ^^^ |
79 | 66 | | |
80 | 67 | note: an `extern "avr-interrupt"` function can only be called using inline assembly |
81 | | - --> $DIR/cannot-be-called.rs:70:5 |
| 68 | + --> $DIR/cannot-be-called.rs:73:5 |
82 | 69 | | |
83 | 70 | LL | f() |
84 | 71 | | ^^^ |
85 | 72 |
|
86 | | -error: aborting due to 6 previous errors; 4 warnings emitted |
| 73 | +error: aborting due to 10 previous errors |
87 | 74 |
|
88 | 75 | For more information about this error, try `rustc --explain E0570`. |
89 | | -Future incompatibility report: Future breakage diagnostic: |
90 | | -warning: the calling convention "msp430-interrupt" is not supported on this target |
91 | | - --> $DIR/cannot-be-called.rs:60:18 |
92 | | - | |
93 | | -LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) { |
94 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
95 | | - | |
96 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
97 | | - = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260> |
98 | | - = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default |
99 | | - |
100 | | -Future breakage diagnostic: |
101 | | -warning: the calling convention "riscv-interrupt-m" is not supported on this target |
102 | | - --> $DIR/cannot-be-called.rs:74:19 |
103 | | - | |
104 | | -LL | fn riscv_m_ptr(f: extern "riscv-interrupt-m" fn()) { |
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 #130260 <https://github.com/rust-lang/rust/issues/130260> |
109 | | - = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default |
110 | | - |
111 | | -Future breakage diagnostic: |
112 | | -warning: the calling convention "riscv-interrupt-s" is not supported on this target |
113 | | - --> $DIR/cannot-be-called.rs:81:19 |
114 | | - | |
115 | | -LL | fn riscv_s_ptr(f: extern "riscv-interrupt-s" fn()) { |
116 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
117 | | - | |
118 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
119 | | - = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260> |
120 | | - = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default |
121 | | - |
122 | | -Future breakage diagnostic: |
123 | | -warning: the calling convention "x86-interrupt" is not supported on this target |
124 | | - --> $DIR/cannot-be-called.rs:88:15 |
125 | | - | |
126 | | -LL | fn x86_ptr(f: extern "x86-interrupt" fn()) { |
127 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
128 | | - | |
129 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
130 | | - = note: for more information, see issue #130260 <https://github.com/rust-lang/rust/issues/130260> |
131 | | - = note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default |
132 | | - |
0 commit comments