aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_mbe/src/tests.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-08-12 17:31:42 +0100
committerGitHub <[email protected]>2020-08-12 17:31:42 +0100
commitd583f2c46d22cf8d643ebf98be9cb7059a304431 (patch)
tree9d898eb9600b0c36a74e4f95238f679c683fa566 /crates/ra_mbe/src/tests.rs
parent3d6889cba72a9d02199f7adaa2ecc69bc30af834 (diff)
parenta1c187eef3ba08076aedb5154929f7eda8d1b424 (diff)
Merge #5729
5729: Rename ra_syntax -> syntax r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_mbe/src/tests.rs')
-rw-r--r--crates/ra_mbe/src/tests.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_mbe/src/tests.rs b/crates/ra_mbe/src/tests.rs
index be39b0e45..0796ceee1 100644
--- a/crates/ra_mbe/src/tests.rs
+++ b/crates/ra_mbe/src/tests.rs
@@ -1,13 +1,13 @@
1use std::fmt::Write; 1use std::fmt::Write;
2 2
3use ::parser::FragmentKind; 3use ::parser::FragmentKind;
4use ra_syntax::{ast, AstNode, NodeOrToken, SyntaxKind::IDENT, SyntaxNode, WalkEvent, T}; 4use syntax::{ast, AstNode, NodeOrToken, SyntaxKind::IDENT, SyntaxNode, WalkEvent, T};
5use test_utils::assert_eq_text; 5use test_utils::assert_eq_text;
6 6
7use super::*; 7use super::*;
8 8
9mod rule_parsing { 9mod rule_parsing {
10 use ra_syntax::{ast, AstNode}; 10 use syntax::{ast, AstNode};
11 11
12 use crate::ast_to_token_tree; 12 use crate::ast_to_token_tree;
13 13
@@ -1698,7 +1698,7 @@ pub(crate) fn parse_to_token_tree_by_syntax(ra_fixture: &str) -> tt::Subtree {
1698 parsed 1698 parsed
1699} 1699}
1700 1700
1701fn debug_dump_ignore_spaces(node: &ra_syntax::SyntaxNode) -> String { 1701fn debug_dump_ignore_spaces(node: &syntax::SyntaxNode) -> String {
1702 let mut level = 0; 1702 let mut level = 0;
1703 let mut buf = String::new(); 1703 let mut buf = String::new();
1704 macro_rules! indent { 1704 macro_rules! indent {
@@ -1718,7 +1718,7 @@ fn debug_dump_ignore_spaces(node: &ra_syntax::SyntaxNode) -> String {
1718 writeln!(buf, "{:?}", node.kind()).unwrap(); 1718 writeln!(buf, "{:?}", node.kind()).unwrap();
1719 } 1719 }
1720 NodeOrToken::Token(token) => match token.kind() { 1720 NodeOrToken::Token(token) => match token.kind() {
1721 ra_syntax::SyntaxKind::WHITESPACE => {} 1721 syntax::SyntaxKind::WHITESPACE => {}
1722 _ => { 1722 _ => {
1723 indent!(); 1723 indent!();
1724 writeln!(buf, "{:?}", token.kind()).unwrap(); 1724 writeln!(buf, "{:?}", token.kind()).unwrap();