Skip to content

Commit 55f3c2d

Browse files
committed
ast: use more direct imports
1 parent c189565 commit 55f3c2d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/libsyntax/ast.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,29 @@
22

33
pub use GenericArgs::*;
44
pub use UnsafeSource::*;
5-
pub use crate::symbol::{Ident, Symbol as Name};
65
pub use crate::util::parser::ExprPrecedence;
76

8-
use crate::ext::hygiene::ExpnId;
97
use crate::parse::token::{self, DelimToken};
108
use crate::ptr::P;
119
use crate::source_map::{dummy_spanned, respan, Spanned};
12-
use crate::symbol::{kw, sym, Symbol};
1310
use crate::tokenstream::TokenStream;
14-
use crate::ThinVec;
11+
12+
use rustc_target::spec::abi::Abi;
13+
pub use rustc_target::abi::FloatTy;
14+
15+
use syntax_pos::{Span, DUMMY_SP, ExpnId};
16+
use syntax_pos::symbol::{kw, sym, Symbol};
17+
pub use syntax_pos::symbol::{Ident, Symbol as Name};
1518

1619
use rustc_index::vec::Idx;
1720
#[cfg(target_arch = "x86_64")]
1821
use rustc_data_structures::static_assert_size;
19-
use rustc_target::spec::abi::Abi;
20-
use syntax_pos::{Span, DUMMY_SP};
21-
2222
use rustc_data_structures::fx::FxHashSet;
2323
use rustc_data_structures::sync::Lrc;
24+
use rustc_data_structures::thin_vec::ThinVec;
2425
use rustc_serialize::{self, Decoder, Encoder};
2526
use std::fmt;
2627

27-
pub use rustc_target::abi::FloatTy;
28-
2928
#[cfg(test)]
3029
mod tests;
3130

0 commit comments

Comments
 (0)