-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
rustc_ast_passes: allow c-variadic associated fns #74765
Conversation
01bb58e
to
7073b9d
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.
Please also add some tests that the functions work as expected, retrieving passed variadic arguments.
Ideally, I would love to see the same tests away used for free functions applied to these cases too, perhaps with a macro to avoid duplication.
Sounds good. |
7073b9d
to
3cb6abb
Compare
@joshtriplett added a run-pass test. Is this what you're looking for? |
☔ The latest upstream changes (presumably #74862) made this pull request unmergeable. Please resolve the merge conflicts. |
@dlrobertson Ping from triage, could you address the review comments? thanks |
- Allow c-variadic associated functions - Add test for c-variadic functions in the Impl context
8b0d291
to
96a8048
Compare
@crlf0710 thanks for the ping, I've also rebased on master. @joshtriplett I added a run-pass test, but I didn't change the run-make tests. After looking into this a bit more I realized that if the output is a c library we're not going to make symbol |
@joshtriplett this is ready for review |
@bors r+ |
📌 Commit 96a8048 has been approved by |
@bors r- failed in #77509 (comment) |
Looking at this now... not immediately sure why this would fail on arm-android |
@dlrobertson any updates? |
@dlrobertson Ping from triage: What's the current status of this? |
No updates on why this is failing on android, but after looking at this more I'm not sure why we would add this. A member function wouldn't be exported right? So really this would only be used for a Rust C-variadic function that was used in another rust function. Would that be considered an anti-pattern? |
The |
@dlrobertson wrote:
This isn't about member functions; this is about associated functions (which don't take |
Ping from triage |
@dlrobertson Triage: I'm closing this due to inactivity. Feel free to reopen or create a new pr when you've got time to work on this again. Thanks! |
Related To: #44930
CC: @jethrogb @sarvi
r? @joshtriplett