Closed cpearce closed 6 years ago
@nox r?
r=me with the trait removed or renamed.
:umbrella: The latest upstream changes (presumably #114) made this pull request unmergeable. Please resolve the merge conflicts.
@nox using an inherent function isn't working:
error[E0116]: cannot define inherent impl
for a type outside of the crate where the type is defined --> src/bin/test-player.rs:276:1276 / impl LayoutPrimitiveInfo { 277 pub fn to(&self, x2: i32, y2: i32) -> LayoutRect { 278 LayoutRect::new( 279 LayoutPoint::new(self.0 as f32, self.1 as f32), ... 282 } 283 } _^ impl for type defined outside of crate. = note: define and implement a trait or new type instead
error: aborting due to previous error
Is there some other way this can be made to work?
I had assumed that LayoutPrimitiveInfo
was our own type, sorry. Let's just merge it as is, r=me once it's rebased.
@bors-servo r=nox
:pushpin: Commit 1543745 has been approved by nox
:hourglass: Testing commit 1543745458274db0f3f023044b14cb5aaf9805c2 with merge ecb0cc7bfdf9629e550f6d13962c7f8f780a0d0c...
:sunny: Test successful - status-travis Approved by: nox Pushing ecb0cc7bfdf9629e550f6d13962c7f8f780a0d0c to master...