Support C23's Variadics Without a Named Parameter - #124048
Conversation
This PR removes the static check that disallowed extern functions with ellipsis (varargs) as the only parameter since this is now valid in C23. Also, adds a doc comment for `check_decl_cvariadic_pos()` and fixes the name of the function (`varadic` -> `variadic`).
|
rustbot has assigned @compiler-errors. Use |
commented
May 15, 2024
|
Concept seems reasonable to me. @rfcbot merge |
|
Team member @joshtriplett has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns. |
commented
May 15, 2024
|
Seems like a reasonable extension. @rfcbot reviewed |
commented
May 15, 2024
|
@rfcbot reviewed |
commented
May 15, 2024
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
commented
May 15, 2024
|
Yeah, since this is |
commented
May 15, 2024
|
@rustbot labels -I-lang-nominated We discussed this in the lang triage call today. People felt good about this, and it's now in FCP. |
commented
May 25, 2024
|
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
commented
May 25, 2024
|
@bors r+ |
commented
May 25, 2024
commented
May 26, 2024
commented
May 26, 2024
|
💔 Test failed - checks-actions |
commented
May 26, 2024
|
A job failed! Check out the build log: (web) (plain) Click to see the possible cause of the failure (guessed by this bot) |
commented
May 26, 2024
|
@bors retry |
Fixes #123773
This PR removes the static check that disallowed extern functions
with ellipsis (varargs) as the only parameter since this is now
valid in C23.
This will not break any existing code as mentioned in the proposal
document: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2975.pdf.
Also, adds a doc comment for
check_decl_cvariadic_pos()andfixes the name of the function (
varadic->variadic).