mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +00:00
76 lines
2.4 KiB
Plaintext
76 lines
2.4 KiB
Plaintext
error[E0570]: "msp430-interrupt" is not a supported ABI for the current target
|
|
--> $DIR/cannot-be-called.rs:37:8
|
|
|
|
|
LL | extern "msp430-interrupt" fn msp430() {}
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error[E0570]: "avr-interrupt" is not a supported ABI for the current target
|
|
--> $DIR/cannot-be-called.rs:39:8
|
|
|
|
|
LL | extern "avr-interrupt" fn avr() {}
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error[E0570]: "riscv-interrupt-m" is not a supported ABI for the current target
|
|
--> $DIR/cannot-be-called.rs:41:8
|
|
|
|
|
LL | extern "riscv-interrupt-m" fn riscv_m() {}
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error[E0570]: "riscv-interrupt-s" is not a supported ABI for the current target
|
|
--> $DIR/cannot-be-called.rs:43:8
|
|
|
|
|
LL | extern "riscv-interrupt-s" fn riscv_s() {}
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error[E0570]: "avr-interrupt" is not a supported ABI for the current target
|
|
--> $DIR/cannot-be-called.rs:66:22
|
|
|
|
|
LL | fn avr_ptr(f: extern "avr-interrupt" fn()) {
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error[E0570]: "msp430-interrupt" is not a supported ABI for the current target
|
|
--> $DIR/cannot-be-called.rs:72:25
|
|
|
|
|
LL | fn msp430_ptr(f: extern "msp430-interrupt" fn()) {
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error[E0570]: "riscv-interrupt-m" is not a supported ABI for the current target
|
|
--> $DIR/cannot-be-called.rs:78:26
|
|
|
|
|
LL | fn riscv_m_ptr(f: extern "riscv-interrupt-m" fn()) {
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error[E0570]: "riscv-interrupt-s" is not a supported ABI for the current target
|
|
--> $DIR/cannot-be-called.rs:84:26
|
|
|
|
|
LL | fn riscv_s_ptr(f: extern "riscv-interrupt-s" fn()) {
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: functions with the "x86-interrupt" ABI cannot be called
|
|
--> $DIR/cannot-be-called.rs:60:5
|
|
|
|
|
LL | x86(&raw const BYTE);
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: an `extern "x86-interrupt"` function can only be called using inline assembly
|
|
--> $DIR/cannot-be-called.rs:60:5
|
|
|
|
|
LL | x86(&raw const BYTE);
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: functions with the "x86-interrupt" ABI cannot be called
|
|
--> $DIR/cannot-be-called.rs:92:5
|
|
|
|
|
LL | f()
|
|
| ^^^
|
|
|
|
|
note: an `extern "x86-interrupt"` function can only be called using inline assembly
|
|
--> $DIR/cannot-be-called.rs:92:5
|
|
|
|
|
LL | f()
|
|
| ^^^
|
|
|
|
error: aborting due to 10 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0570`.
|