use more correct phantom types for ptrs
This commit is contained in:
@@ -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> {}
|
||||
|
||||
Reference in New Issue
Block a user