@@ -12,8 +12,7 @@ use rustc_feature::UnstableFeatures;
1212use rustc_target:: spec:: { LinkerFlavor , MergeFunctions , PanicStrategy , RelroLevel } ;
1313use rustc_target:: spec:: { Target , TargetTriple } ;
1414
15- use syntax;
16- use syntax:: ast;
15+ use syntax:: ast:: CrateConfig ;
1716use syntax:: source_map:: { FileName , FilePathMapping } ;
1817use syntax:: edition:: { Edition , EDITION_NAME_LIST , DEFAULT_EDITION } ;
1918use syntax:: symbol:: { sym, Symbol } ;
@@ -1535,7 +1534,7 @@ pub const fn default_lib_output() -> CrateType {
15351534 CrateType :: Rlib
15361535}
15371536
1538- pub fn default_configuration ( sess : & Session ) -> ast :: CrateConfig {
1537+ pub fn default_configuration ( sess : & Session ) -> CrateConfig {
15391538 let end = & sess. target . target . target_endian ;
15401539 let arch = & sess. target . target . arch ;
15411540 let wordsz = & sess. target . target . target_pointer_width ;
@@ -1607,13 +1606,13 @@ pub fn default_configuration(sess: &Session) -> ast::CrateConfig {
16071606/// Converts the crate `cfg!` configuration from `String` to `Symbol`.
16081607/// `rustc_interface::interface::Config` accepts this in the compiler configuration,
16091608/// 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 {
16111610 cfg. into_iter ( )
16121611 . map ( |( a, b) | ( Symbol :: intern ( & a) , b. map ( |b| Symbol :: intern ( & b) ) ) )
16131612 . collect ( )
16141613}
16151614
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 {
16171616 // Combine the configuration requested by the session (command line) with
16181617 // some default and generated configuration items.
16191618 let default_cfg = default_configuration ( sess) ;
0 commit comments