mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
8a50bcbdce
Remove the unstable `extern "wasm"` ABI (`wasm_abi` feature tracked in #83788). As discussed in https://github.com/rust-lang/rust/pull/127513#issuecomment-2220410679 and following, this ABI is a failed experiment that did not end up being used for anything. Keeping support for this ABI in LLVM 19 would require us to switch wasm targets to the `experimental-mv` ABI, which we do not want to do. It should be noted that `Abi::Wasm` was internally used for two things: The `-Z wasm-c-abi=legacy` ABI that is still used by default on some wasm targets, and the `extern "wasm"` ABI. Despite both being `Abi::Wasm` internally, they were not the same. An explicit `extern "wasm"` additionally enabled the `+multivalue` feature. I've opted to remove `Abi::Wasm` in this patch entirely, instead of keeping it as an ABI with only internal usage. Both `-Z wasm-c-abi` variants are now treated as part of the normal C ABI, just with different different treatment in adjust_for_foreign_abi.
56 lines
1.9 KiB
Plaintext
56 lines
1.9 KiB
Plaintext
error[E0570]: `"ptx-kernel"` is not a supported ABI for the current target
|
|
--> $DIR/unsupported.rs:28:1
|
|
|
|
|
LL | extern "ptx-kernel" fn ptx() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error[E0570]: `"aapcs"` is not a supported ABI for the current target
|
|
--> $DIR/unsupported.rs:30:1
|
|
|
|
|
LL | extern "aapcs" fn aapcs() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error[E0570]: `"msp430-interrupt"` is not a supported ABI for the current target
|
|
--> $DIR/unsupported.rs:36:1
|
|
|
|
|
LL | extern "msp430-interrupt" fn msp430() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error[E0570]: `"avr-interrupt"` is not a supported ABI for the current target
|
|
--> $DIR/unsupported.rs:38:1
|
|
|
|
|
LL | extern "avr-interrupt" fn avr() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error[E0570]: `"riscv-interrupt-m"` is not a supported ABI for the current target
|
|
--> $DIR/unsupported.rs:40:1
|
|
|
|
|
LL | extern "riscv-interrupt-m" fn riscv() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error[E0570]: `"x86-interrupt"` is not a supported ABI for the current target
|
|
--> $DIR/unsupported.rs:45:1
|
|
|
|
|
LL | extern "x86-interrupt" fn x86() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error[E0570]: `"thiscall"` is not a supported ABI for the current target
|
|
--> $DIR/unsupported.rs:50:1
|
|
|
|
|
LL | extern "thiscall" fn thiscall() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: use of calling convention not supported on this target
|
|
--> $DIR/unsupported.rs:56:1
|
|
|
|
|
LL | extern "stdcall" fn stdcall() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
= note: for more information, see issue #87678 <https://github.com/rust-lang/rust/issues/87678>
|
|
= note: `#[warn(unsupported_calling_conventions)]` on by default
|
|
|
|
error: aborting due to 7 previous errors; 1 warning emitted
|
|
|
|
For more information about this error, try `rustc --explain E0570`.
|