diff options
author | Aleksey Kladov <[email protected]> | 2019-04-08 23:06:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-04-09 08:26:51 +0100 |
commit | faf526e021e09770cae28f8d7c8ee88a54d6574d (patch) | |
tree | 9fb5bbab15472c7d5b870a65c0ec34256b13c428 /crates/ra_syntax/src/ast.rs | |
parent | ac6ab0758731d0555fbf1b1a918abd3e12c8169d (diff) |
migrate to untyped rowan
Diffstat (limited to 'crates/ra_syntax/src/ast.rs')
-rw-r--r-- | crates/ra_syntax/src/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast.rs b/crates/ra_syntax/src/ast.rs index c2ab19d97..f7e33366e 100644 --- a/crates/ra_syntax/src/ast.rs +++ b/crates/ra_syntax/src/ast.rs | |||
@@ -9,7 +9,7 @@ mod expr_extensions; | |||
9 | use std::marker::PhantomData; | 9 | use std::marker::PhantomData; |
10 | 10 | ||
11 | use crate::{ | 11 | use crate::{ |
12 | syntax_node::{SyntaxNode, SyntaxNodeChildren, TreeArc, RaTypes, SyntaxToken}, | 12 | syntax_node::{SyntaxNode, SyntaxNodeChildren, TreeArc, SyntaxToken}, |
13 | SmolStr, | 13 | SmolStr, |
14 | }; | 14 | }; |
15 | 15 | ||
@@ -26,7 +26,7 @@ pub use self::{ | |||
26 | /// the same representation: a pointer to the tree root and a pointer to the | 26 | /// the same representation: a pointer to the tree root and a pointer to the |
27 | /// node itself. | 27 | /// node itself. |
28 | pub trait AstNode: | 28 | pub trait AstNode: |
29 | rowan::TransparentNewType<Repr = rowan::SyntaxNode<RaTypes>> + ToOwned<Owned = TreeArc<Self>> | 29 | rowan::TransparentNewType<Repr = rowan::SyntaxNode> + ToOwned<Owned = TreeArc<Self>> |
30 | { | 30 | { |
31 | fn cast(syntax: &SyntaxNode) -> Option<&Self> | 31 | fn cast(syntax: &SyntaxNode) -> Option<&Self> |
32 | where | 32 | where |