-
Notifications
You must be signed in to change notification settings - Fork 13k
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
rustc: Use link_section, not wasm_custom_section #52353
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
cc @eddyb |
ty::TyUint(ast::UintTy::U8) => return, | ||
_ => {} | ||
} | ||
fn maybe_check_static_with_link_section(tcx: TyCtxt, id: DefId, span: Span) { |
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.
cc @oli-obk Should this be in rustc_typeck
?
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.
Seems fine for now. I can merge it into #51361 once that becomes a thing (since this is more of a constant value validation than a type check)
LGTM, and I guess |
The job 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 |
@michaelwoerister hm can you help me figure out how to fix the test here? I believe because I"ve switched to For example commenting out the |
☔ The latest upstream changes (presumably #52266) made this pull request unmergeable. Please resolve the merge conflicts. |
0d82c0f
to
d0288cb
Compare
Ok, I think I figured out the appropriate incantation |
☔ The latest upstream changes (presumably #52264) made this pull request unmergeable. Please resolve the merge conflicts. |
This commit transitions definitions of custom sections on the wasm target from the unstable `#[wasm_custom_section]` attribute to the already-stable-for-other-targets `#[link_section]` attribute. Mostly the same restrictions apply as before, except that this now applies only to statics. Closes rust-lang#51088
d0288cb
to
b7ef674
Compare
r? @eddyb |
@bors: r=eddyb |
📌 Commit b7ef674 has been approved by |
rustc: Use link_section, not wasm_custom_section This commit transitions definitions of custom sections on the wasm target from the unstable `#[wasm_custom_section]` attribute to the already-stable-for-other-targets `#[link_section]` attribute. Mostly the same restrictions apply as before, except that this now applies only to statics. Closes #51088
☀️ Test successful - status-appveyor, status-travis |
This commit transitions definitions of custom sections on the wasm target from
the unstable
#[wasm_custom_section]
attribute to thealready-stable-for-other-targets
#[link_section]
attribute. Mostly the samerestrictions apply as before, except that this now applies only to statics.
Closes #51088