-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Implement unstable ffi_return_twice attribute #58315
Conversation
I'd prefer to enable this only for EDIT: done, I've submitted an RFC for this. |
d46a78c
to
bf2c5d3
Compare
r? @alexcrichton / @rkruppe / @nagisa |
Code LGTM. Does anyone have a strong opinion on whether to merge this now or wait how the RFC plays out? |
cc @RalfJung |
r=me on the technical side of things, so for language/rfc/whatnot r? @RalfJung |
Uh, sorry, I don't have any skin in this. It's all FFI stuff, which I know little about, and from my understanding it's mostly about taming LLVM's optimizer, which I know even less about. Functions not being well-nested does have some deep consequences, but I guess there's no way we are going to rule this out entirely. |
Oh, and don't we usually wait until the RFC gets accepted before implementing it? Like, what if we land this and then the RFC gets rejected? |
We remove the feature and call it a day. AFAICT many unstable features are implemented all the time without nobody ever talking about actually RFCing the stuff. I want to use this in stable Rust at some point, so for that it definitely needs to go properly through the process (and the design space here is small, iff the intend is to do what C does in C FFI at least). |
shrug @bors r=alexcrichton |
📌 Commit d0fddd3 has been approved by |
⌛ Testing commit d0fddd3 with merge aeb7d5db71b9e2554ae2f78d91442e872729d3ce... |
💔 Test failed - checks-travis |
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors retry -- apparently we can't clone the repo anymore on macOS |
Implement unstable ffi_return_twice attribute This PR implements [RFC2633](rust-lang/rfcs#2633) r? @eddyb
Failed in #58664 (comment), @bors r- |
I guess another PR in the rollup also added the same error code? Or how did tidy fail there but not here? |
d0fddd3
to
94aa740
Compare
@Centril all checks passed, can we give this another try? |
@bors r=alexcrichton |
📌 Commit 94aa740 has been approved by |
Implement unstable ffi_return_twice attribute This PR implements [RFC2633](rust-lang/rfcs#2633) r? @eddyb
☀️ Test successful - checks-travis, status-appveyor |
☀️ Test successful - checks-travis, status-appveyor |
This PR implements RFC2633
r? @eddyb