mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
allow rustfmt to reorder imports
This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway
This commit is contained in:
parent
2b2cd829b0
commit
1834bae5b8
166 changed files with 798 additions and 814 deletions
|
@ -10,8 +10,9 @@
|
|||
use std::mem;
|
||||
|
||||
use crate::{
|
||||
ParseError, TreeSink,
|
||||
ParseError,
|
||||
SyntaxKind::{self, *},
|
||||
TreeSink,
|
||||
};
|
||||
|
||||
/// `Parser` produces a flat list of `Event`s.
|
||||
|
|
|
@ -37,9 +37,9 @@ mod type_params;
|
|||
mod types;
|
||||
|
||||
use crate::{
|
||||
parser::{CompletedMarker, Marker, Parser},
|
||||
SyntaxKind::{self, *},
|
||||
TokenSet,
|
||||
parser::{CompletedMarker, Marker, Parser},
|
||||
};
|
||||
|
||||
pub(crate) fn root(p: &mut Parser) {
|
||||
|
|
|
@ -3,10 +3,10 @@ use std::cell::Cell;
|
|||
use drop_bomb::DropBomb;
|
||||
|
||||
use crate::{
|
||||
SyntaxKind::{self, ERROR, EOF, TOMBSTONE},
|
||||
TokenSource, ParseError, TokenSet,
|
||||
event::Event,
|
||||
T
|
||||
ParseError,
|
||||
SyntaxKind::{self, EOF, ERROR, TOMBSTONE},
|
||||
TokenSet, TokenSource, T,
|
||||
};
|
||||
|
||||
/// `Parser` struct provides the low-level API for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue