Open
Description
This is a tracking issue for extending available ABIs for var-args functions.
The feature gate for the issue is #![feature(extended_varargs_abi_support)]
.
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
- Implementation - Enable varargs support for calling conventions other than C or cdecl #97971
- Adjust documentation (see instructions on rustc-dev-guide)
- Stabilization PR
Implementation history
- Enable varargs support for calling conventions other than C or cdecl #97971
- Enable varargs support for AAPCS calling convention #115860
- Stabilize
extended_varargs_abi_support
#116161 - Varargs support for system ABI #119587 note1
Unresolved Questions
- should
extern "system"
be included? the original feature only described itself as applying toextern "efiapi"
,extern "sysv64"
, andextern "win64"
, and later the feature described itself as applying toextern "aapcs"
, but the only case whereextern "system"
is meaningfully distinct is a case where it cannot be a vararg ABI. while MSVC sometimes translates__stdcall
to be identical to the C ABI, we have previously rejected implementing MSVC's oddities:
Footnotes
-
this was not recorded as part of the impl history until after it was discovered this feature was initially stabilized without an FCP. ↩