Skip to content

Stabilize C-variadic function definitions - #727

Merged
kirtchev-adacore merged 1 commit into
mainfrom
pr/kirtchev/c-variadic-functions
Oct 30, 2026
Merged

kirtchev-adacore merged 1 commit into
mainfrom
pr/kirtchev/c-variadic-functions

Conversation

@kirtchev-adacore

Copy link
Copy Markdown
Contributor

This PR adds FLS rules that stem from Stabilize C-variadic function definitions.

@kirtchev-adacore
kirtchev-adacore force-pushed the pr/kirtchev/c-variadic-functions branch 5 times, most recently from 463bbfe to 8b6b413 Compare September 28, 2026 07:54
@kirtchev-adacore
kirtchev-adacore marked this pull request as ready for review September 28, 2026 08:01
@kirtchev-adacore

Copy link
Copy Markdown
Contributor Author

@PLeVasseur @tshepang Attributes link_ordinal and link_section were alphabetized, in case you are wondering what happened there.

@kirtchev-adacore
kirtchev-adacore force-pushed the pr/kirtchev/c-variadic-functions branch 2 times, most recently from b7a9662 to e90f5ae Compare September 28, 2026 08:21

@tshepang tshepang left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work (and would have been more easy to review if different aspects, like the re-ordering and the renaming, were separated into different commits)

View changes since this review

Comment thread src/ffi.rst Resolved
Comment thread src/types-and-traits.rst Resolved
@rustbot

This comment has been minimized.

@tshepang
tshepang force-pushed the pr/kirtchev/c-variadic-functions branch from caed066 to d7aaa6d Compare October 6, 2026 16:42
@rustbot

rustbot commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@tshepang

tshepang commented Oct 6, 2026

Copy link
Copy Markdown
Member

added changes corresponding to rust-lang/reference#2321, and updated changelog to cover changes in the first commit

bors-ferrocene Bot added a commit to ferrocene/ferrocene that referenced this pull request Oct 9, 2026
2618: [1.99] [869apdayd] Backport FLS changes for Rust 1.99 r=Hoverbear a=fs-rachel

Manually backport #2603 + pending changes from rust-lang/fls#727

Ferrocene-backport-of: #2603

Co-authored-by: kirtchev-adacore <kirtchev@adacore.com>
Co-authored-by: Tshepang Mbambo <tshepang.mbambo@ferrous-systems.com>
Co-authored-by: Tshepang Mbambo <hopsi@tuta.io>
Co-authored-by: Pete LeVasseur <plevasseur@gmail.com>
bors-ferrocene Bot added a commit to ferrocene/ferrocene that referenced this pull request Oct 10, 2026
2618: [1.99] [869apdayd] Backport FLS changes for Rust 1.99 r=Hoverbear a=fs-rachel

Manually backport #2603 + pending changes from rust-lang/fls#727

Ferrocene-backport-of: #2603

Co-authored-by: kirtchev-adacore <kirtchev@adacore.com>
Co-authored-by: Tshepang Mbambo <tshepang.mbambo@ferrous-systems.com>
Co-authored-by: Tshepang Mbambo <hopsi@tuta.io>
Co-authored-by: Pete LeVasseur <plevasseur@gmail.com>
Comment thread src/functions.rst Resolved
Comment thread src/functions.rst Resolved
Comment thread src/functions.rst Resolved
Comment thread version.rst Resolved

@PLeVasseur PLeVasseur left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, @kirtchev-adacore. I can see it's quite complex. I've left some comments that I'd ask you to look at. Perhaps we go over this tomorrow in our meeting too.

View changes since this review

Comment thread src/functions.rst Resolved
Comment thread src/types-and-traits.rst Resolved
Comment thread src/functions.rst Resolved
Comment thread src/functions.rst Resolved
Comment thread src/functions.rst Resolved
Comment thread src/functions.rst Resolved
Comment thread src/functions.rst Resolved
Comment thread src/functions.rst Resolved
@PLeVasseur PLeVasseur added the I-fls-nominated Nominated for discussion during an FLS team meeting. label Oct 23, 2026

@PLeVasseur PLeVasseur left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the follow-up! I've left a few more comments and some clarification.

Could you take a look?

View changes since this review

Comment thread src/types-and-traits.rst Resolved
Comment thread src/changelog.rst Resolved
Comment thread src/functions.rst Resolved
Comment thread src/functions.rst Resolved
Comment thread src/functions.rst Resolved
Comment thread src/types-and-traits.rst Resolved

@PLeVasseur PLeVasseur left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple more items I left on here, could you take a look?

View changes since this review

Comment thread src/functions.rst Resolved
Comment thread src/types-and-traits.rst Resolved

@PLeVasseur PLeVasseur left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thank you for this, @kirtchev-adacore!

View changes since this review

Comment thread src/types-and-traits.rst Resolved
@PLeVasseur

Copy link
Copy Markdown
Contributor

~ DO NOT MERGE YET ~

@kirtchev-adacore will update the changelog 👍

@kirtchev-adacore
kirtchev-adacore force-pushed the pr/kirtchev/c-variadic-functions branch 2 times, most recently from 867e127 to 303e87a Compare October 29, 2026 08:30
@kirtchev-adacore

Copy link
Copy Markdown
Contributor Author

I have updated the changelog entries.

Comment thread src/types-and-traits.rst Resolved
Comment thread src/attributes.rst Resolved
This PR adds FLS rules that stem from [Stabilize C-variadic function
definitions](rust-lang/rust#155697) and
[rust-lang/reference PR
2177](rust-lang/reference#2177).
@kirtchev-adacore
kirtchev-adacore force-pushed the pr/kirtchev/c-variadic-functions branch from 303e87a to 6668636 Compare October 29, 2026 11:44

@PLeVasseur PLeVasseur left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for bringing this to the end.

View changes since this review

@kirtchev-adacore
kirtchev-adacore added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 946eaca Oct 30, 2026
4 checks passed
@kirtchev-adacore
kirtchev-adacore deleted the pr/kirtchev/c-variadic-functions branch October 30, 2026 14:04
bors-ferrocene Bot added a commit to ferrocene/ferrocene that referenced this pull request Nov 2, 2026
2676: [1.99] fls: incorporate latest upstream updates r=fs-rachel a=tshepang

rust-lang/fls#727 has since been updated with improvements and fixes, so this pr manually includes those changes (on top of #2618)

Co-authored-by: Tshepang Mbambo <tshepang.mbambo@ferrous-systems.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

I-fls-nominated Nominated for discussion during an FLS team meeting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants