Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature gate extern fn methods #1429
Conversation
This comment has been minimized.
This comment has been minimized.
|
SGTM. |
This comment has been minimized.
This comment has been minimized.
rphmeier
commented
Dec 27, 2015
|
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? |
This comment has been minimized.
This comment has been minimized.
|
I know we have received at least one bug report about this feature in conjunction with |
This comment has been minimized.
This comment has been minimized.
|
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? |
This comment has been minimized.
This comment has been minimized.
remram44
commented
Dec 29, 2015
|
@RalfJung No it doesn't. This RFC only aim to feature-gate extern methods, not functions. |
This comment has been minimized.
This comment has been minimized.
|
Oh, I see :) |
nrc
added
the
T-lang
label
Jan 4, 2016
nikomatsakis
self-assigned this
Jan 7, 2016
This comment has been minimized.
This comment has been minimized.
|
@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 |
This comment has been minimized.
This comment has been minimized.
|
Vaguely related, should rustfmt change |
This comment has been minimized.
This comment has been minimized.
|
And +1 for a crater run |
This comment has been minimized.
This comment has been minimized.
|
This is no longer necessary AFAIK, all methods should be compatible with all ABIs now. |
This comment has been minimized.
This comment has been minimized.
|
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. |
nikomatsakis
added
the
final-comment-period
label
Apr 8, 2016
This comment has been minimized.
This comment has been minimized.
|
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! |
Aatch commentedDec 27, 2015
Rendered