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.
This commit is contained in:
Aleksey Kladov 2018-11-01 16:18:53 +03:00
parent c74e86536e
commit cca5f862de
3 changed files with 7 additions and 5 deletions

View file

@ -9,14 +9,14 @@ extern crate relative_path;
extern crate rustc_hash; extern crate rustc_hash;
extern crate salsa; extern crate salsa;
mod completion;
mod db; mod db;
mod descriptors;
mod imp;
mod input; mod input;
pub mod mock_analysis; mod imp;
mod completion;
mod descriptors;
mod symbol_index; mod symbol_index;
mod syntax_ptr; mod syntax_ptr;
pub mod mock_analysis;
use std::{fmt, sync::Arc}; use std::{fmt, sync::Arc};

View file

@ -188,7 +188,7 @@ mod tests {
use super::{ use super::{
super::{test_utils::extract_range, text_utils::replace_range, utils::dump_tree, File}, super::{test_utils::extract_range, text_utils::replace_range, utils::dump_tree, File},
reparse_block, reparse_leaf, AtomEdit, GreenNode, SyntaxError, SyntaxNodeRef, reparse_block, reparse_leaf, AtomEdit, GreenNode, SyntaxError, SyntaxNodeRef,
}; };
fn do_check<F>(before: &str, replace_with: &str, reparser: F) fn do_check<F>(before: &str, replace_with: &str, reparser: F)
where where

View file

@ -0,0 +1,2 @@
reorder_imports = false
reorder_modules = false