-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
Remove the need for rust-mozjs to use unstable Rust features #18875
Conversation
Heads up! This PR modifies the following files:
|
${isTypedMethod}, | ||
${slotIndex} as u16, | ||
) | ||
((JSJitInfo_OpType::${opType} as u8 as u32) << 0) | |
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.
Next I’ll move this bit-shifting into a macro in rust-mozjs
I'm not really ok with the removal of The rest looks fine to me, but it sounds like you want to remove all |
The default is still to use I’m not planning to touch |
Pushed a few more commits. The last one updates rust-mozjs to a commit that hasn’t been merged yet: servo/rust-mozjs#373 so this PR should not land until that one has been reviewed. |
Remove the use of unstable Rust features. This modifies generated files, but http://searchfox.org/mozilla-central/source/js/rust/ already has similar changes through `rust_target(bindgen::RustTarget::Stable_1_19)` This depends on servo/servo#18875. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/373) <!-- Reviewable:end -->
This looks fine to me. |
@bors-servo r=nox,jdm |
📌 Commit 7c5fd99 has been approved by |
🔒 Merge conflict |
☔ The latest upstream changes (presumably #18900) made this pull request unmergeable. Please resolve the merge conflicts. |
…ures. I’m not confident of the implications regarding variance, dropck, struct aliasing, etc. when this is extended to generic `*const T` and `*mut T`. Release builds should use `unstable` to enable other optimizations anyway.
The API is identical to core::nonzero::NonZero
@bors-servo r=nox,jdm |
📌 Commit 49e4540 has been approved by |
Remove the need for rust-mozjs to use unstable Rust features <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18875) <!-- Reviewable:end -->
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)