-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Feature gate extern fn methods #1429
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
SGTM. |
This seems very reasonable, but I'd be interested in seeing the fallout. Are there a lot of bindings to C libraries which use this feature? |
I know we have received at least one bug report about this feature in conjunction with |
Doesn't this RFC effectively break all Rust crates that wrap C libraries, e.g. https://crates.io/crates/openssl-sys/ and https://crates.io/crates/libusb-sys/ and many more? |
@RalfJung No it doesn't. This RFC only aim to feature-gate extern methods, not functions. |
Oh, I see :) |
@Aatch do you have an impl? if you can whip one up, I can do a crater run, feels like necessary data before we make a decision one way or the other. But I'm inclined to 👍 here. |
Vaguely related, should rustfmt change |
And +1 for a crater run |
This is no longer necessary AFAIK, all methods should be compatible with all ABIs now. |
Hear ye, hear ye! This RFC is now entering final comment period. I should note that, personally, I'm inclined not to accept, based on @eddyb's comment. |
After discussion in the @rust-lang/lang meeting today, we've decided not to accept this RFC. There doesn't seem to be any particular semantic concerns about allowing methods to have their own ABI, and the implementation is even working as far as we know, so retroactively feature gating is not necessary. Thanks @Aatch! |
Rendered