diff options
author | Aleksey Kladov <[email protected]> | 2020-08-12 17:26:51 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-08-12 17:30:53 +0100 |
commit | a1c187eef3ba08076aedb5154929f7eda8d1b424 (patch) | |
tree | 9d898eb9600b0c36a74e4f95238f679c683fa566 /crates/ra_ssr/src/parsing.rs | |
parent | 3d6889cba72a9d02199f7adaa2ecc69bc30af834 (diff) |
Rename ra_syntax -> syntax
Diffstat (limited to 'crates/ra_ssr/src/parsing.rs')
-rw-r--r-- | crates/ra_ssr/src/parsing.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ssr/src/parsing.rs b/crates/ra_ssr/src/parsing.rs index f455eb5b7..9570e96e3 100644 --- a/crates/ra_ssr/src/parsing.rs +++ b/crates/ra_ssr/src/parsing.rs | |||
@@ -7,9 +7,9 @@ | |||
7 | 7 | ||
8 | use crate::errors::bail; | 8 | use crate::errors::bail; |
9 | use crate::{SsrError, SsrPattern, SsrRule}; | 9 | use crate::{SsrError, SsrPattern, SsrRule}; |
10 | use ra_syntax::{ast, AstNode, SmolStr, SyntaxKind, SyntaxNode, T}; | ||
11 | use rustc_hash::{FxHashMap, FxHashSet}; | 10 | use rustc_hash::{FxHashMap, FxHashSet}; |
12 | use std::str::FromStr; | 11 | use std::str::FromStr; |
12 | use syntax::{ast, AstNode, SmolStr, SyntaxKind, SyntaxNode, T}; | ||
13 | use test_utils::mark; | 13 | use test_utils::mark; |
14 | 14 | ||
15 | #[derive(Debug)] | 15 | #[derive(Debug)] |
@@ -243,7 +243,7 @@ fn validate_rule(rule: &SsrRule) -> Result<(), SsrError> { | |||
243 | 243 | ||
244 | fn tokenize(source: &str) -> Result<Vec<Token>, SsrError> { | 244 | fn tokenize(source: &str) -> Result<Vec<Token>, SsrError> { |
245 | let mut start = 0; | 245 | let mut start = 0; |
246 | let (raw_tokens, errors) = ra_syntax::tokenize(source); | 246 | let (raw_tokens, errors) = syntax::tokenize(source); |
247 | if let Some(first_error) = errors.first() { | 247 | if let Some(first_error) = errors.first() { |
248 | bail!("Failed to parse pattern: {}", first_error); | 248 | bail!("Failed to parse pattern: {}", first_error); |
249 | } | 249 | } |