Uh oh!
There was an error while loading. Please reload this page.
rustc_ast_passes: allow c-variadic associated fns - #74765
Conversation
01bb58e to
7073b9dCompare
joshtriplett
left a comment
There was a problem hiding this comment.
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.
dlrobertson
commented
Jul 28, 2020
Sounds good. |
7073b9d to
3cb6abbComparedlrobertson
commented
Aug 15, 2020
@joshtriplett added a run-pass test. Is this what you're looking for? |
bors
commented
Aug 30, 2020
☔ The latest upstream changes (presumably #74862) made this pull request unmergeable. Please resolve the merge conflicts. |
crlf0710
commented
Sep 18, 2020
@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
96a8048Comparedlrobertson
commented
Sep 18, 2020
@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 |
Dylan-DPC-zz
commented
Oct 3, 2020
@joshtriplett this is ready for review |
joshtriplett
commented
Oct 3, 2020
@bors r+ |
bors
commented
Oct 3, 2020
📌 Commit 96a8048 has been approved by |
jonas-schievink
commented
Oct 3, 2020
@bors r- failed in #77509 (comment) |
dlrobertson
commented
Oct 13, 2020
Looking at this now... not immediately sure why this would fail on arm-android |
Dylan-DPC-zz
commented
Nov 17, 2020
@dlrobertson any updates? |
crlf0710
commented
Dec 4, 2020
@dlrobertson Ping from triage: What's the current status of this? |
dlrobertson
commented
Dec 5, 2020
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 |
joshtriplett
commented
Dec 6, 2020
@dlrobertson wrote:
This isn't about member functions; this is about associated functions (which don't take |
JohnCSimon
commented
Jan 11, 2021
Ping from triage |
crlf0710
commented
Jan 29, 2021
@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