aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/yellow.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-08 08:28:42 +0000
committerAleksey Kladov <[email protected]>2019-01-08 08:28:42 +0000
commitda0b348ae9f629c5cbe4a836a90ed85e36ca18e5 (patch)
tree614fd83f614632e3c87130117421708a7a028c13 /crates/ra_syntax/src/yellow.rs
parentd6020f516f2826dac7188171241e9a72d6248cf8 (diff)
migrate ra_hir to rowan 2.0
Diffstat (limited to 'crates/ra_syntax/src/yellow.rs')
-rw-r--r--crates/ra_syntax/src/yellow.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/yellow.rs b/crates/ra_syntax/src/yellow.rs
index f31efa174..1bf1806b9 100644
--- a/crates/ra_syntax/src/yellow.rs
+++ b/crates/ra_syntax/src/yellow.rs
@@ -47,6 +47,17 @@ where
47 } 47 }
48} 48}
49 49
50impl<T> PartialEq<T> for TreePtr<T>
51where
52 T: TransparentNewType<Repr = rowan::SyntaxNode<RaTypes>>,
53 T: PartialEq<T>,
54{
55 fn eq(&self, other: &T) -> bool {
56 let t: &T = self;
57 t == other
58 }
59}
60
50impl<T> Clone for TreePtr<T> 61impl<T> Clone for TreePtr<T>
51where 62where
52 T: TransparentNewType<Repr = rowan::SyntaxNode<RaTypes>>, 63 T: TransparentNewType<Repr = rowan::SyntaxNode<RaTypes>>,