aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-12-06 18:16:37 +0000
committerAleksey Kladov <[email protected]>2018-12-06 18:16:37 +0000
commit28ddecf6c99ef23bc96b9eb7bc8ee049f1732e76 (patch)
tree7912f80008f47e240be2ed8c88f923824409f396 /crates/ra_syntax
parentf6e8b376d1d21b8b697de5ef1e35a341855202ed (diff)
modernize even more
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r--crates/ra_syntax/src/lib.rs4
-rw-r--r--crates/ra_syntax/src/reparsing.rs8
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]
25extern crate test_utils;
26
27pub mod algo; 23pub mod algo;
28pub mod ast; 24pub mod ast;
29mod lexer; 25mod 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)]
181mod tests { 181mod 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