Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove the need for rust-mozjs to use unstable Rust features #18875
Conversation
highfive
commented
Oct 14, 2017
|
Heads up! This PR modifies the following files:
|
highfive
commented
Oct 14, 2017
| ${isTypedMethod}, | ||
| ${slotIndex} as u16, | ||
| ) | ||
| ((JSJitInfo_OpType::${opType} as u8 as u32) << 0) | |
This comment has been minimized.
This comment has been minimized.
|
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 |
|
|
|
|
|
|
…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
…mpls.
|
@bors-servo r=nox,jdm |
|
|
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 -->
|
|
SimonSapin commentedOct 14, 2017
•
edited
This change is