aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_hir/src/source_id.rs2
-rw-r--r--crates/ra_syntax/src/ptr.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/source_id.rs b/crates/ra_hir/src/source_id.rs
index 324b79824..6cdb90141 100644
--- a/crates/ra_hir/src/source_id.rs
+++ b/crates/ra_hir/src/source_id.rs
@@ -52,7 +52,7 @@ impl<N: AstNode> AstId<N> {
52#[derive(Debug)] 52#[derive(Debug)]
53pub(crate) struct FileAstId<N: AstNode> { 53pub(crate) struct FileAstId<N: AstNode> {
54 raw: ErasedFileAstId, 54 raw: ErasedFileAstId,
55 _ty: PhantomData<N>, 55 _ty: PhantomData<fn() -> N>,
56} 56}
57 57
58impl<N: AstNode> Clone for FileAstId<N> { 58impl<N: AstNode> Clone for FileAstId<N> {
diff --git a/crates/ra_syntax/src/ptr.rs b/crates/ra_syntax/src/ptr.rs
index 0550dca1a..4823eb82e 100644
--- a/crates/ra_syntax/src/ptr.rs
+++ b/crates/ra_syntax/src/ptr.rs
@@ -36,7 +36,7 @@ impl SyntaxNodePtr {
36#[derive(Debug, PartialEq, Eq, Hash)] 36#[derive(Debug, PartialEq, Eq, Hash)]
37pub struct AstPtr<N: AstNode> { 37pub struct AstPtr<N: AstNode> {
38 raw: SyntaxNodePtr, 38 raw: SyntaxNodePtr,
39 _ty: PhantomData<N>, 39 _ty: PhantomData<fn() -> N>,
40} 40}
41 41
42impl<N: AstNode> Copy for AstPtr<N> {} 42impl<N: AstNode> Copy for AstPtr<N> {}