@@ -280,22 +280,22 @@ fn pretty_print_input(sess: session, cfg: ast::crate_cfg, input: str,
280
280
// from stdin, we're going to just suck the source into a string
281
281
// so both the parser and pretty-printer can use it.
282
282
let upto = alt ppm {
283
- ppm_expanded. { cu_expand }
284
- ppm_typed. { cu_typeck }
283
+ ppm_expanded { cu_expand }
284
+ ppm_typed { cu_typeck }
285
285
_ { cu_parse }
286
286
} ;
287
287
let { crate , tcx, src} = compile_upto ( sess, cfg, input, upto, none) ;
288
288
289
289
let ann: pprust:: pp_ann = pprust:: no_ann ( ) ;
290
290
alt ppm {
291
- ppm_typed. {
291
+ ppm_typed {
292
292
ann = { pre : ann_paren_for_expr,
293
293
post : bind ann_typed_post ( option:: get ( tcx) , _) } ;
294
294
}
295
- ppm_identified. {
295
+ ppm_identified {
296
296
ann = { pre: ann_paren_for_expr, post: ann_identified_post} ;
297
297
}
298
- ppm_expanded. | ppm_normal . { }
298
+ ppm_expanded | ppm_normal { }
299
299
}
300
300
pprust:: print_crate ( sess. codemap , sess. diagnostic , crate , input,
301
301
io:: string_reader ( src) , io:: stdout ( ) , ann) ;
@@ -332,11 +332,11 @@ fn build_target_config(sopts: @session::options,
332
332
demitter : diagnostic:: emitter ) -> @session:: config {
333
333
let os = alt get_os ( sopts. target_triple ) {
334
334
some ( os) { os }
335
- none. { early_error ( demitter, "Unknown operating system!" ) }
335
+ none { early_error( demitter, "Unknown operating system!" ) }
336
336
} ;
337
337
let arch = alt get_arch ( sopts. target_triple ) {
338
338
some ( arch) { arch }
339
- none. { early_error ( demitter,
339
+ none { early_error( demitter,
340
340
"Unknown architecture! " + sopts. target_triple ) }
341
341
} ;
342
342
let ( int_type, uint_type, float_type) = alt arch {
@@ -429,7 +429,7 @@ fn build_session_options(match: getopts::match,
429
429
} else { 0 u } ;
430
430
let target =
431
431
alt target_opt {
432
- none. { host_triple( ) }
432
+ none { host_triple( ) }
433
433
some( s) { s }
434
434
} ;
435
435
@@ -538,8 +538,8 @@ fn build_output_filenames(ifile: str,
538
538
539
539
let obj_suffix =
540
540
alt sopts. output_type {
541
- link:: output_type_none. { "none" }
542
- link:: output_type_bitcode. { "bc" }
541
+ link:: output_type_none { "none" }
542
+ link:: output_type_bitcode { "bc" }
543
543
link:: output_type_assembly. { "s" }
544
544
link:: output_type_llvm_assembly. { "ll" }
545
545
// Object and exe output both use the '.o' extension here
@@ -549,13 +549,13 @@ fn build_output_filenames(ifile: str,
549
549
} ;
550
550
551
551
alt ofile {
552
- none. {
552
+ none {
553
553
// "-" as input file will cause the parser to read from stdin so we
554
554
// have to make up a name
555
555
// We want to toss everything after the final '.'
556
556
let dirname = alt odir {
557
557
some( d) { d }
558
- none. {
558
+ none {
559
559
if input_is_stdin( ifile) {
560
560
std:: os:: getcwd ( )
561
561
} else {
0 commit comments