mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
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:
parent
c74e86536e
commit
cca5f862de
3 changed files with 7 additions and 5 deletions
|
@ -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};
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
reorder_imports = false
|
||||||
|
reorder_modules = false
|
Loading…
Reference in a new issue