Skip to content
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

Add extend method and get euclid to build with rustc 1.15. #208

Merged
merged 1 commit into from Jun 8, 2017

Conversation

@nical
Copy link
Collaborator

nical commented Jun 8, 2017

WebRender's CI runs rustc 1.15 to match gecko's, and in euclid 14.0 we introduced a usage of self that apparently was not allowed with this version of the compiler.
This commit also adds the extend method suggested in the review of the euclid bump in WebRender.


This change is Reviewable

@nical
Copy link
Collaborator Author

nical commented Jun 8, 2017

r? @kvark

@kvark
kvark approved these changes Jun 8, 2017
@@ -325,7 +331,7 @@ where T: Copy + One + Add<Output=T> + Sub<Output=T> + Mul<Output=T> {
}
}

impl<T: Copy+ApproxEq<T>, U> ApproxEq<Self> for TypedPoint2D<T, U> {
impl<T: Copy+ApproxEq<T>, U> ApproxEq<TypedPoint2D<T, U>> for TypedPoint2D<T, U> {

This comment has been minimized.

@kvark

kvark Jun 8, 2017

Member

argh... I wonder if/when traits like this would be able to be defined with Self as default generic parameter

@kvark
Copy link
Member

kvark commented Jun 8, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Jun 8, 2017

📌 Commit a3cbcb3 has been approved by kvark

@bors-servo
Copy link
Contributor

bors-servo commented Jun 8, 2017

Testing commit a3cbcb3 with merge 2f8db72...

bors-servo added a commit that referenced this pull request Jun 8, 2017
Add extend method and get euclid to build with rustc 1.15.

WebRender's CI runs rustc 1.15 to match gecko's, and in euclid 14.0 we introduced a usage of self that apparently was not allowed with this version of the compiler.
This commit also adds the extend method suggested in the review of the euclid bump in WebRender.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/euclid/208)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jun 8, 2017

☀️ Test successful - status-travis
Approved by: kvark
Pushing 2f8db72 to master...

@bors-servo bors-servo merged commit a3cbcb3 into servo:master Jun 8, 2017
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@nical nical deleted the nical:self branch Jun 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.