@@ -117,7 +117,7 @@ fn run_pretty_test(config: config, props: test_props, testfile: &Path) {
117
117
} else { logv( config, ~"testing for converging pretty-printing") ; }
118
118
119
119
let rounds =
120
- match props. pp_exact { option :: Some ( _) => 1 , option :: None => 2 } ;
120
+ match props. pp_exact { Some ( _) => 1 , None => 2 } ;
121
121
122
122
let mut srcs = ~[ io:: read_whole_file_str ( testfile) . get ( ) ] ;
123
123
@@ -137,11 +137,11 @@ fn run_pretty_test(config: config, props: test_props, testfile: &Path) {
137
137
138
138
let mut expected =
139
139
match props. pp_exact {
140
- option :: Some ( file) => {
140
+ Some ( file) => {
141
141
let filepath = testfile. dir_path ( ) . push_rel ( & file) ;
142
142
io:: read_whole_file_str ( & filepath) . get ( )
143
143
}
144
- option :: None => { srcs[ vec:: len ( srcs) - 2 u] }
144
+ None => { srcs[ vec:: len ( srcs) - 2 u] }
145
145
} ;
146
146
let mut actual = srcs[ vec:: len ( srcs) - 1 u] ;
147
147
@@ -165,7 +165,7 @@ fn run_pretty_test(config: config, props: test_props, testfile: &Path) {
165
165
166
166
fn print_source ( config : config , testfile : & Path , src : ~str ) -> procres {
167
167
compose_and_run ( config, testfile, make_pp_args ( config, testfile) ,
168
- ~[ ] , config. compile_lib_path , option :: Some ( src) )
168
+ ~[ ] , config. compile_lib_path , Some ( src) )
169
169
}
170
170
171
171
fn make_pp_args ( config : config , _testfile : & Path ) -> procargs {
@@ -199,7 +199,7 @@ actual:\n\
199
199
compose_and_run_compiler (
200
200
config, props, testfile,
201
201
make_typecheck_args ( config, testfile) ,
202
- option :: Some ( src) )
202
+ Some ( src) )
203
203
}
204
204
205
205
fn make_typecheck_args ( config : config , testfile : & Path ) -> procargs {
@@ -418,7 +418,7 @@ fn exec_compiled_test(config: config, props: test_props,
418
418
compose_and_run ( config, testfile,
419
419
make_run_args ( config, props, testfile) ,
420
420
props. exec_env ,
421
- config. run_lib_path , option :: None )
421
+ config. run_lib_path , None )
422
422
}
423
423
424
424
fn compose_and_run_compiler (
@@ -441,7 +441,7 @@ fn compose_and_run_compiler(
441
441
make_compile_args ( config, props, ~[ ~"--lib"] + extra_link_args,
442
442
|a, b| make_lib_name ( a, b, testfile) , & abs_ab) ;
443
443
let auxres = compose_and_run ( config, & abs_ab, aux_args, ~[ ] ,
444
- config. compile_lib_path , option :: None ) ;
444
+ config. compile_lib_path , None ) ;
445
445
if auxres. status != 0 {
446
446
fatal_procres (
447
447
fmt ! ( "auxiliary build of %s failed to compile: " ,
@@ -501,8 +501,8 @@ fn make_run_args(config: config, _props: test_props, testfile: &Path) ->
501
501
// then split apart its command
502
502
let runtool =
503
503
match config. runtool {
504
- option :: Some ( s) => option :: Some ( s) ,
505
- option :: None => option :: None
504
+ Some ( s) => Some ( s) ,
505
+ None => None
506
506
} ;
507
507
split_maybe_args ( runtool)
508
508
} ;
@@ -517,8 +517,8 @@ fn split_maybe_args(argstr: Option<~str>) -> ~[~str] {
517
517
}
518
518
519
519
match argstr {
520
- option :: Some ( s) => rm_whitespace ( str:: split_char ( s, ' ' ) ) ,
521
- option :: None => ~[ ]
520
+ Some ( s) => rm_whitespace ( str:: split_char ( s, ' ' ) ) ,
521
+ None => ~[ ]
522
522
}
523
523
}
524
524
0 commit comments