diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-08 09:05:55 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-08 09:05:55 +0000 |
commit | 3f4be819125ce4a22edd86721fa56b5caba99c2e (patch) | |
tree | be93895ddc08c911585d9f7bc64623a3741f32c6 /crates/ra_syntax/tests/test.rs | |
parent | 4e444d2bc24d16284401444fd2154f63e0f96070 (diff) | |
parent | 122410d7aa34a32d468a3173858cbc8a2bbc68f5 (diff) |
Merge #449
449: switch to new rowan API r=matklad a=matklad
closes https://github.com/rust-analyzer/rust-analyzer/issues/448
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/tests/test.rs')
-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, |