diff options
Diffstat (limited to 'crates/ra_syntax/tests')
-rw-r--r-- | crates/ra_syntax/tests/test.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_syntax/tests/test.rs b/crates/ra_syntax/tests/test.rs index 2235dc401..3243b27ae 100644 --- a/crates/ra_syntax/tests/test.rs +++ b/crates/ra_syntax/tests/test.rs | |||
@@ -9,8 +9,8 @@ use std::{ | |||
9 | 9 | ||
10 | use test_utils::{project_dir, dir_tests, read_text, collect_tests}; | 10 | use test_utils::{project_dir, dir_tests, read_text, collect_tests}; |
11 | use ra_syntax::{ | 11 | use ra_syntax::{ |
12 | SourceFile, AstNode, | ||
12 | utils::{check_fuzz_invariants, dump_tree}, | 13 | utils::{check_fuzz_invariants, dump_tree}, |
13 | SourceFileNode, | ||
14 | }; | 14 | }; |
15 | 15 | ||
16 | #[test] | 16 | #[test] |
@@ -27,7 +27,7 @@ fn parser_tests() { | |||
27 | &test_data_dir(), | 27 | &test_data_dir(), |
28 | &["parser/inline/ok", "parser/ok"], | 28 | &["parser/inline/ok", "parser/ok"], |
29 | |text, path| { | 29 | |text, path| { |
30 | let file = SourceFileNode::parse(text); | 30 | let file = SourceFile::parse(text); |
31 | let errors = file.errors(); | 31 | let errors = file.errors(); |
32 | assert_eq!( | 32 | assert_eq!( |
33 | &*errors, | 33 | &*errors, |
@@ -42,7 +42,7 @@ fn parser_tests() { | |||
42 | &test_data_dir(), | 42 | &test_data_dir(), |
43 | &["parser/err", "parser/inline/err"], | 43 | &["parser/err", "parser/inline/err"], |
44 | |text, path| { | 44 | |text, path| { |
45 | let file = SourceFileNode::parse(text); | 45 | let file = SourceFile::parse(text); |
46 | let errors = file.errors(); | 46 | let errors = file.errors(); |
47 | assert_ne!( | 47 | assert_ne!( |
48 | &*errors, | 48 | &*errors, |
@@ -85,7 +85,7 @@ fn self_hosting_parsing() { | |||
85 | { | 85 | { |
86 | count += 1; | 86 | count += 1; |
87 | let text = read_text(entry.path()); | 87 | let text = read_text(entry.path()); |
88 | let node = SourceFileNode::parse(&text); | 88 | let node = SourceFile::parse(&text); |
89 | let errors = node.errors(); | 89 | let errors = node.errors(); |
90 | assert_eq!( | 90 | assert_eq!( |
91 | &*errors, | 91 | &*errors, |