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

@ -52,7 +52,7 @@ impl<N: AstNode> AstId<N> {
#[derive(Debug)]
pub(crate) struct FileAstId<N: AstNode> {
raw: ErasedFileAstId,
_ty: PhantomData<N>,
_ty: PhantomData<fn() -> N>,
}
impl<N: AstNode> Clone for FileAstId<N> {