diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-04-09 08:29:06 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-04-09 08:29:06 +0100 |
commit | 5f700179fc7ed16d2848a6dbc7cf23da3b8df6c7 (patch) | |
tree | 9fb5bbab15472c7d5b870a65c0ec34256b13c428 /crates/ra_syntax/src/ast.rs | |
parent | ac6ab0758731d0555fbf1b1a918abd3e12c8169d (diff) | |
parent | faf526e021e09770cae28f8d7c8ee88a54d6574d (diff) |
Merge #1123
1123: migrate to untyped rowan r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
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 |