-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add 'const' to some signatures for AIX #4563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
LGTM after Were you able to confirm that these are actually fine to be |
Yes, the AIX team confirmed that there should not be an impact if the arguments are declared with |
I requested AIX to update these signatures with |
Could you just run the formatter here for the style check job (and squash)?
Great, thank you! |
1a91a28
to
26f735c
Compare
Sorry, I’ve corrected the formatting. |
26f735c
to
6af1254
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Thank you, @tgross35! |
Thanks for this work guys. |
(backport <rust-lang#4563>) (cherry picked from commit 6af1254)
Description
The AIX signatures for some non-POSIX functions differ from those on platforms like Linux: some arguments are not marked with the
const
qualifier, even though they are not modified. To be consistent with other platforms,const
is added to the Rust declarations.Sources
Checklist
libc-test/semver
have been updated*LAST
or*MAX
areincluded (see #3131)
cd libc-test && cargo test --target mytarget
);especially relevant for platforms that may not be checked in CI