diff options
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/src/lib.rs | 2 | ||||
-rw-r--r-- | crates/ra_syntax/src/ptr.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index 06d3ea727..ff347a567 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs | |||
@@ -38,7 +38,7 @@ use ra_text_edit::AtomTextEdit; | |||
38 | use crate::syntax_node::GreenNode; | 38 | use crate::syntax_node::GreenNode; |
39 | 39 | ||
40 | pub use crate::{ | 40 | pub use crate::{ |
41 | ast::AstNode, | 41 | ast::{AstNode, Pat, PatKind}, |
42 | parsing::{classify_literal, tokenize, Token}, | 42 | parsing::{classify_literal, tokenize, Token}, |
43 | ptr::{AstPtr, SyntaxNodePtr}, | 43 | ptr::{AstPtr, SyntaxNodePtr}, |
44 | syntax_error::{Location, SyntaxError, SyntaxErrorKind}, | 44 | syntax_error::{Location, SyntaxError, SyntaxErrorKind}, |
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)] |
37 | pub struct AstPtr<N: AstNode> { | 37 | pub struct AstPtr<N: AstNode> { |
38 | raw: SyntaxNodePtr, | 38 | raw: SyntaxNodePtr, |
39 | _ty: PhantomData<N>, | 39 | _ty: PhantomData<fn() -> N>, |
40 | } | 40 | } |
41 | 41 | ||
42 | impl<N: AstNode> Copy for AstPtr<N> {} | 42 | impl<N: AstNode> Copy for AstPtr<N> {} |