@@ -12,8 +12,7 @@ use rustc_feature::UnstableFeatures;
12
12
use rustc_target:: spec:: { LinkerFlavor , MergeFunctions , PanicStrategy , RelroLevel } ;
13
13
use rustc_target:: spec:: { Target , TargetTriple } ;
14
14
15
- use syntax;
16
- use syntax:: ast;
15
+ use syntax:: ast:: CrateConfig ;
17
16
use syntax:: source_map:: { FileName , FilePathMapping } ;
18
17
use syntax:: edition:: { Edition , EDITION_NAME_LIST , DEFAULT_EDITION } ;
19
18
use syntax:: symbol:: { sym, Symbol } ;
@@ -1535,7 +1534,7 @@ pub const fn default_lib_output() -> CrateType {
1535
1534
CrateType :: Rlib
1536
1535
}
1537
1536
1538
- pub fn default_configuration ( sess : & Session ) -> ast :: CrateConfig {
1537
+ pub fn default_configuration ( sess : & Session ) -> CrateConfig {
1539
1538
let end = & sess. target . target . target_endian ;
1540
1539
let arch = & sess. target . target . arch ;
1541
1540
let wordsz = & sess. target . target . target_pointer_width ;
@@ -1607,13 +1606,13 @@ pub fn default_configuration(sess: &Session) -> ast::CrateConfig {
1607
1606
/// Converts the crate `cfg!` configuration from `String` to `Symbol`.
1608
1607
/// `rustc_interface::interface::Config` accepts this in the compiler configuration,
1609
1608
/// but the symbol interner is not yet set up then, so we must convert it later.
1610
- pub fn to_crate_config ( cfg : FxHashSet < ( String , Option < String > ) > ) -> ast :: CrateConfig {
1609
+ pub fn to_crate_config ( cfg : FxHashSet < ( String , Option < String > ) > ) -> CrateConfig {
1611
1610
cfg. into_iter ( )
1612
1611
. map ( |( a, b) | ( Symbol :: intern ( & a) , b. map ( |b| Symbol :: intern ( & b) ) ) )
1613
1612
. collect ( )
1614
1613
}
1615
1614
1616
- pub fn build_configuration ( sess : & Session , mut user_cfg : ast :: CrateConfig ) -> ast :: CrateConfig {
1615
+ pub fn build_configuration ( sess : & Session , mut user_cfg : CrateConfig ) -> CrateConfig {
1617
1616
// Combine the configuration requested by the session (command line) with
1618
1617
// some default and generated configuration items.
1619
1618
let default_cfg = default_configuration ( sess) ;
0 commit comments