From fe53b282500f32c2d0cc1dfee1d7ccddfedac583 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 7 Jan 2019 17:00:39 +0300 Subject: migrate ra_db to new rowan --- crates/ra_syntax/src/yellow.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'crates/ra_syntax') diff --git a/crates/ra_syntax/src/yellow.rs b/crates/ra_syntax/src/yellow.rs index 38e680a9c..f31efa174 100644 --- a/crates/ra_syntax/src/yellow.rs +++ b/crates/ra_syntax/src/yellow.rs @@ -20,7 +20,7 @@ impl Types for RaTypes { pub type GreenNode = rowan::GreenNode; -#[derive(Clone, PartialEq, Eq, Hash)] +#[derive(PartialEq, Eq, Hash)] pub struct TreePtr>>( pub(crate) rowan::TreePtr, ); @@ -47,6 +47,15 @@ where } } +impl Clone for TreePtr +where + T: TransparentNewType>, +{ + fn clone(&self) -> TreePtr { + TreePtr(self.0.clone()) + } +} + impl fmt::Debug for TreePtr where T: TransparentNewType>, -- cgit v1.2.3