diff options
author | Aleksey Kladov <[email protected]> | 2018-12-06 18:16:37 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-06 18:16:37 +0000 |
commit | 28ddecf6c99ef23bc96b9eb7bc8ee049f1732e76 (patch) | |
tree | 7912f80008f47e240be2ed8c88f923824409f396 /crates/ra_syntax | |
parent | f6e8b376d1d21b8b697de5ef1e35a341855202ed (diff) |
modernize even more
Diffstat (limited to 'crates/ra_syntax')
-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 |