diff options
author | Aleksey Kladov <[email protected]> | 2018-11-01 13:18:53 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-11-01 13:18:53 +0000 |
commit | cca5f862de8a4eb4a8990fdca95a4a7686937789 (patch) | |
tree | 3f3e70d0be8f36a8751f2d75b84581265fc43823 /crates | |
parent | c74e86536e569486008b39f319ba70dbb7641d2b (diff) |
Don't order import alphabetical
alphabetical ordering is no more consistent, and much less useful then
the ordering which arises naturally when you add import.
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_analysis/src/lib.rs | 8 | ||||
-rw-r--r-- | crates/ra_syntax/src/reparsing.rs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index d21be3a88..6565f69fb 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs | |||
@@ -9,14 +9,14 @@ extern crate relative_path; | |||
9 | extern crate rustc_hash; | 9 | extern crate rustc_hash; |
10 | extern crate salsa; | 10 | extern crate salsa; |
11 | 11 | ||
12 | mod completion; | ||
13 | mod db; | 12 | mod db; |
14 | mod descriptors; | ||
15 | mod imp; | ||
16 | mod input; | 13 | mod input; |
17 | pub mod mock_analysis; | 14 | mod imp; |
15 | mod completion; | ||
16 | mod descriptors; | ||
18 | mod symbol_index; | 17 | mod symbol_index; |
19 | mod syntax_ptr; | 18 | mod syntax_ptr; |
19 | pub mod mock_analysis; | ||
20 | 20 | ||
21 | use std::{fmt, sync::Arc}; | 21 | use std::{fmt, sync::Arc}; |
22 | 22 | ||
diff --git a/crates/ra_syntax/src/reparsing.rs b/crates/ra_syntax/src/reparsing.rs index d3b9a30d6..b3b51b3e4 100644 --- a/crates/ra_syntax/src/reparsing.rs +++ b/crates/ra_syntax/src/reparsing.rs | |||
@@ -188,7 +188,7 @@ mod tests { | |||
188 | use super::{ | 188 | use super::{ |
189 | super::{test_utils::extract_range, text_utils::replace_range, utils::dump_tree, File}, | 189 | super::{test_utils::extract_range, text_utils::replace_range, utils::dump_tree, File}, |
190 | reparse_block, reparse_leaf, AtomEdit, GreenNode, SyntaxError, SyntaxNodeRef, | 190 | reparse_block, reparse_leaf, AtomEdit, GreenNode, SyntaxError, SyntaxNodeRef, |
191 | }; | 191 | }; |
192 | 192 | ||
193 | fn do_check<F>(before: &str, replace_with: &str, reparser: F) | 193 | fn do_check<F>(before: &str, replace_with: &str, reparser: F) |
194 | where | 194 | where |