@@ -64,7 +64,7 @@ pub fn source_name(input: &input) -> @str {
6464}
6565
6666pub fn default_configuration(sess: Session, argv0: @str, input: &input) ->
67- ast::crate_cfg {
67+ ast::CrateConfig {
6868 let (libc, tos) = match sess.targ_cfg.os {
6969 session::os_win32 => (@" msvcrt. dll", @"win32") ,
7070 session :: os_macos => ( @"libc. dylib ", @"macos") ,
@@ -96,14 +96,14 @@ pub fn default_configuration(sess: Session, argv0: @str, input: &input) ->
9696 mk ( @"build_input", source_name ( input) ) ] ;
9797}
9898
99- pub fn append_configuration ( cfg : & mut ast:: crate_cfg , name : @str ) {
99+ pub fn append_configuration ( cfg : & mut ast:: CrateConfig , name : @str ) {
100100 if !cfg. iter ( ) . any ( |mi| mi. name ( ) == name) {
101101 cfg. push ( attr:: mk_word_item ( name) )
102102 }
103103}
104104
105105pub fn build_configuration ( sess : Session , argv0 : @str , input : & input ) ->
106- ast:: crate_cfg {
106+ ast:: CrateConfig {
107107 // Combine the configuration requested by the session (command line) with
108108 // some default and generated configuration items
109109 let default_cfg = default_configuration ( sess, argv0, input) ;
@@ -117,11 +117,11 @@ pub fn build_configuration(sess: Session, argv0: @str, input: &input) ->
117117
118118// Convert strings provided as --cfg [cfgspec] into a crate_cfg
119119fn parse_cfgspecs ( cfgspecs : ~[ ~str ] ,
120- demitter : diagnostic:: Emitter ) -> ast:: crate_cfg {
120+ demitter : diagnostic:: Emitter ) -> ast:: CrateConfig {
121121 do cfgspecs. consume_iter ( ) . transform |s| {
122122 let sess = parse:: new_parse_sess ( Some ( demitter) ) ;
123123 parse:: parse_meta_from_source_str ( @"cfgspec", s. to_managed ( ) , ~[ ] , sess)
124- } . collect :: < ast:: crate_cfg > ( )
124+ } . collect :: < ast:: CrateConfig > ( )
125125}
126126
127127pub enum input {
@@ -132,8 +132,8 @@ pub enum input {
132132 str_input( @str )
133133}
134134
135- pub fn parse_input ( sess : Session , cfg : ast:: crate_cfg , input : & input )
136- -> @ast:: crate {
135+ pub fn parse_input ( sess : Session , cfg : ast:: CrateConfig , input : & input )
136+ -> @ast:: Crate {
137137 match * input {
138138 file_input( ref file) => {
139139 parse:: parse_crate_from_file ( & ( * file) , cfg, sess. parse_sess )
@@ -167,11 +167,11 @@ pub enum compile_phase {
167167
168168#[ fixed_stack_segment]
169169pub fn compile_rest( sess : Session ,
170- cfg : ast:: crate_cfg ,
170+ cfg : ast:: CrateConfig ,
171171 phases : compile_upto ,
172172 outputs : Option < @OutputFilenames > ,
173- curr : Option < @ast:: crate > )
174- -> ( Option < @ast:: crate > , Option < ty:: ctxt > ) {
173+ curr : Option < @ast:: Crate > )
174+ -> ( Option < @ast:: Crate > , Option < ty:: ctxt > ) {
175175
176176 let time_passes = sess. time_passes ( ) ;
177177
@@ -372,11 +372,11 @@ pub fn compile_rest(sess: Session,
372372}
373373
374374pub fn compile_upto ( sess : Session ,
375- cfg : ast:: crate_cfg ,
375+ cfg : ast:: CrateConfig ,
376376 input : & input ,
377377 upto : compile_phase ,
378378 outputs : Option < @OutputFilenames > )
379- -> ( Option < @ast:: crate > , Option < ty:: ctxt > ) {
379+ -> ( Option < @ast:: Crate > , Option < ty:: ctxt > ) {
380380 let time_passes = sess. time_passes ( ) ;
381381 let crate = time ( time_passes,
382382 ~"parsing",
@@ -395,7 +395,7 @@ pub fn compile_upto(sess: Session,
395395 Some ( crate ) )
396396}
397397
398- pub fn compile_input ( sess : Session , cfg : ast:: crate_cfg , input : & input ,
398+ pub fn compile_input ( sess : Session , cfg : ast:: CrateConfig , input : & input ,
399399 outdir : & Option < Path > , output : & Option < Path > ) {
400400 let upto = if sess. opts . parse_only { cu_parse }
401401 else if sess. opts . no_trans { cu_no_trans }
@@ -404,7 +404,7 @@ pub fn compile_input(sess: Session, cfg: ast::crate_cfg, input: &input,
404404 compile_upto ( sess, cfg, input, upto, Some ( outputs) ) ;
405405}
406406
407- pub fn pretty_print_input ( sess : Session , cfg : ast:: crate_cfg , input : & input ,
407+ pub fn pretty_print_input ( sess : Session , cfg : ast:: CrateConfig , input : & input ,
408408 ppm : pp_mode ) {
409409 fn ann_paren_for_expr ( node : pprust:: ann_node ) {
410410 match node {
0 commit comments