auto merge of #5127 : KiChjang/servo/partial-eq-jsref, r=Ms2ger

Fixes #5112, #3960
This commit is contained in:
bors-servo 2015-03-05 01:15:44 -07:00
commit 67548a6244
3 changed files with 7 additions and 7 deletions

View file

@ -727,7 +727,7 @@ impl<'a, T> Clone for JSRef<'a, T> {
}
}
impl<'a, T> PartialEq for JSRef<'a, T> {
impl<'a, 'b, T> PartialEq<JSRef<'b, T>> for JSRef<'a, T> {
fn eq(&self, other: &JSRef<T>) -> bool {
self.ptr == other.ptr
}