use more correct phantom types for ptrs

This commit is contained in:
Aleksey Kladov
2019-07-18 18:13:32 +03:00
parent 517692de43
commit 0fb4b896e2
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ impl SyntaxNodePtr {
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AstPtr<N: AstNode> {
raw: SyntaxNodePtr,
_ty: PhantomData<N>,
_ty: PhantomData<fn() -> N>,
}
impl<N: AstNode> Copy for AstPtr<N> {}