diff options
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/lib.rs | 4 | ||||
-rw-r--r-- | crates/ra_syntax/src/reparsing.rs | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index 56c61ae5d..0e5c9baad 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs | |||
@@ -20,10 +20,6 @@ | |||
20 | #![allow(missing_docs)] | 20 | #![allow(missing_docs)] |
21 | //#![warn(unreachable_pub)] // rust-lang/rust#47816 | 21 | //#![warn(unreachable_pub)] // rust-lang/rust#47816 |
22 | 22 | ||
23 | #[cfg(test)] | ||
24 | #[macro_use] | ||
25 | extern crate test_utils; | ||
26 | |||
27 | pub mod algo; | 23 | pub mod algo; |
28 | pub mod ast; | 24 | pub mod ast; |
29 | mod lexer; | 25 | mod lexer; |
diff --git a/crates/ra_syntax/src/reparsing.rs b/crates/ra_syntax/src/reparsing.rs index ddcb8f6f6..732fb0e4a 100644 --- a/crates/ra_syntax/src/reparsing.rs +++ b/crates/ra_syntax/src/reparsing.rs | |||
@@ -179,10 +179,10 @@ fn merge_errors( | |||
179 | 179 | ||
180 | #[cfg(test)] | 180 | #[cfg(test)] |
181 | mod tests { | 181 | mod tests { |
182 | use super::{ | 182 | use test_utils::{extract_range, assert_eq_text}; |
183 | super::{test_utils::extract_range, text_utils::replace_range, utils::dump_tree, SourceFileNode}, | 183 | |
184 | reparse_block, reparse_leaf, AtomEdit, GreenNode, SyntaxError, SyntaxNodeRef, | 184 | use crate::{SourceFileNode, text_utils::replace_range, utils::dump_tree }; |
185 | }; | 185 | use super::*; |
186 | 186 | ||
187 | fn do_check<F>(before: &str, replace_with: &str, reparser: F) | 187 | fn do_check<F>(before: &str, replace_with: &str, reparser: F) |
188 | where | 188 | where |