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 upAdd a conversion from the newly-#[stable] `ptr::NonNull` type #390
Conversation
|
@fitzgen @jdm @nox How do you feel about this repository requiring Rust |
|
I assume you meant 1.25? I don't mind. |
|
Oops, yes. I mostly ask in case it interferes with plans to unify this repo with |
|
In particular: this is only clean-up, so if it requires adding a Cargo feature somewhere it’s not worth it and we can just wait. |
| impl ToJSValConvertible for ptr::NonNull<JSObject> { | ||
| #[inline] | ||
| unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue) { | ||
| rval.set(ObjectOrNullValue(self.get())); |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This will allow removing the `NonNullJSObjectPtr` hack in Servo, but raises the minimum Rust version to 1.25 (currently Nigthly)
|
I take it "approved" means: @bors-servo r=jdm |
|
|
Add a conversion from the newly-#[stable] `ptr::NonNull` type This will allow removing the `NonNullJSObjectPtr` hack in Servo, but raises the minimum Rust version to 1.25 (currently Nigthly) <!-- 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/390) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
Add a conversion from the newly-#[stable] `ptr::NonNull` type This will allow removing the `NonNullJSObjectPtr` hack in Servo, but raises the minimum Rust version to 1.25 (currently Nigthly) <!-- 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/390) <!-- Reviewable:end -->
|
Eh, OS X job on Travis-CI still not scheduled after 13 hours… |
|
|
5a68234
into
master
SimonSapin commentedJan 21, 2018
•
edited by larsbergstrom
This will allow removing the
NonNullJSObjectPtrhack in Servo, but raises the minimum Rust version to 1.25 (currently Nigthly)This change is