-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Make the wasm_c_abi future compat warning a hard error #133951
base: master
Are you sure you want to change the base?
Conversation
given #129534 r? @workingjubilee @alexcrichton does this need a compiler FCP? |
This comment has been minimized.
This comment has been minimized.
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.
I should note that the changes in #129534 did not actually start showing an error to users, it was still a warning by default.
See #129534 (comment)
0ed0661
to
e1f75dd
Compare
Technically we are breaking like ~85 versions of a foundation ecosystem crate, so yeah, an FCP might be warranted, but also technically we're just fixing a bug. If we do this, we should make sure we only do one FCP between this and #133952 though since they're the same decision: "We're killing this dead, yeah?" |
e1f75dd
to
10a3850
Compare
Nominating for T-compiler: We already accepted the MCP to phase out this behavior, but this is the "hard break" edge. If an FCP is desired before proceeding, now is the time to decide. We are technically breaking a crate on future versions of Rust. However it is the crate and target's maintainer wish that we do so, and this is the solution to a 4 year old issue: We have heard no strong objection and this has been discussed for 4 years at this point, so any box-ticking formality is exactly that: a formality. @rustbot label: +I-compiler-nominated Also cc @daxpedda |
To summarize even more summarily for T-lang:
Things have settled and it has become clear that Rust should align the ABI of Thanks to @alexcrichton and @daxpedda we have implemented a relatively-smooth migration path for wasm-bindgen. There should be no meaningful concerns going forward, and this will make code that wasn't compatible with C code be compatible again, according to the conventional understanding of |
This is the next step in getting rid of the broken C abi for wasm32-unknown-unknown.
10a3850
to
fde2b1b
Compare
This is the next step in getting rid of the broken C abi for wasm32-unknown-unknown.
The lint was made deny-by-default in #129534 3 months ago. This still keeps the
-Zwasm-c-abi
flag set tolegacy
by default. It will be flipped in a future PR.cc #122532