
After the stabilization PR was opened, `extern "system"` functions were added to `extended_varargs_abi_support`. This has a number of questions regarding it that were not discussed and were somewhat surprising. It deserves to be considered as its own feature, separate from `extended_varargs_abi_support`.
33 lines
1.7 KiB
Text
33 lines
1.7 KiB
Text
error[E0658]: using calling conventions other than `C` or `cdecl` for varargs functions is unstable
|
|
--> $DIR/feature-gate-extended_varargs_abi_support.rs:3:14
|
|
|
|
|
LL | fn efiapi(f: extern "efiapi" fn(usize, ...)) {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #100189 <https://github.com/rust-lang/rust/issues/100189> for more information
|
|
= help: add `#![feature(extended_varargs_abi_support)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error[E0658]: using calling conventions other than `C` or `cdecl` for varargs functions is unstable
|
|
--> $DIR/feature-gate-extended_varargs_abi_support.rs:7:12
|
|
|
|
|
LL | fn sysv(f: extern "sysv64" fn(usize, ...)) {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #100189 <https://github.com/rust-lang/rust/issues/100189> for more information
|
|
= help: add `#![feature(extended_varargs_abi_support)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error[E0658]: using calling conventions other than `C` or `cdecl` for varargs functions is unstable
|
|
--> $DIR/feature-gate-extended_varargs_abi_support.rs:11:11
|
|
|
|
|
LL | fn win(f: extern "win64" fn(usize, ...)) {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #100189 <https://github.com/rust-lang/rust/issues/100189> for more information
|
|
= help: add `#![feature(extended_varargs_abi_support)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|