From 0fb4b896e2b4a1da3069e30b4d4fba0821dc1e13 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 18 Jul 2019 18:13:32 +0300 Subject: use more correct phantom types for ptrs --- crates/ra_hir/src/source_id.rs | 2 +- crates/ra_syntax/src/ptr.rs | 2 +- 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 AstId { #[derive(Debug)] pub(crate) struct FileAstId { raw: ErasedFileAstId, - _ty: PhantomData, + _ty: PhantomData N>, } impl Clone for FileAstId { 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 { #[derive(Debug, PartialEq, Eq, Hash)] pub struct AstPtr { raw: SyntaxNodePtr, - _ty: PhantomData, + _ty: PhantomData N>, } impl Copy for AstPtr {} -- cgit v1.2.3