@@ -150,7 +150,7 @@ fn run_pretty_test(cx: &cx, props: &test_props, testfile: &str) {
150
150
151
151
fn make_pp_args ( config : & config , testfile : & str ) -> procargs {
152
152
let prog = config. rustc_path ;
153
- let args = [ "-" , "--pretty" , "normal" ] ;
153
+ let args = ~ [ "-" , "--pretty" , "normal" ] ;
154
154
ret { prog : prog, args : args} ;
155
155
}
156
156
@@ -180,7 +180,7 @@ actual:\n\
180
180
181
181
fn make_typecheck_args ( config : & config , testfile : & str ) -> procargs {
182
182
let prog = config. rustc_path ;
183
- let args = [ "-" , "--no-trans" , "--lib" ] ;
183
+ let args = ~ [ "-" , "--no-trans" , "--lib" ] ;
184
184
ret { prog : prog, args : args} ;
185
185
}
186
186
}
@@ -219,7 +219,7 @@ fn check_error_patterns(props: &test_props, testfile: &str,
219
219
}
220
220
}
221
221
222
- type procargs = { prog : str , args : vec [ str ] } ;
222
+ type procargs = { prog : str , args : [ str ] } ;
223
223
224
224
type procres = { status : int , stdout : str , stderr : str , cmdline : str } ;
225
225
@@ -248,7 +248,7 @@ fn make_compile_args(config: &config,
248
248
props : & test_props , testfile : & str ) ->
249
249
procargs {
250
250
let prog = config. rustc_path ;
251
- let args = [ testfile, "-o" , make_exe_name ( config, testfile) ] ;
251
+ let args = ~ [ testfile, "-o" , make_exe_name ( config, testfile) ] ;
252
252
args += split_maybe_args ( config. rustcflags ) ;
253
253
args += split_maybe_args ( props. compile_flags ) ;
254
254
ret { prog : prog, args : args} ;
@@ -265,15 +265,15 @@ fn make_run_args(config: &config,
265
265
// then split apart its command
266
266
split_maybe_args ( config. runtool )
267
267
} else {
268
- [ ]
268
+ ~ [ ]
269
269
} ;
270
270
271
- let args = toolargs + [ make_exe_name ( config, testfile) ] ;
272
- ret { prog : args. ( 0 ) , args : vec :: slice ( args, 1 u, vec :: len ( args) ) } ;
271
+ let args = toolargs + ~ [ make_exe_name ( config, testfile) ] ;
272
+ ret { prog : args. ( 0 ) , args : ivec :: slice ( args, 1 u, ivec :: len ( args) ) } ;
273
273
}
274
274
275
- fn split_maybe_args ( argstr : & option:: t [ str ] ) -> vec [ str ] {
276
- fn rm_whitespace ( v : vec [ str ] ) -> vec [ str ] {
275
+ fn split_maybe_args ( argstr : & option:: t [ str ] ) -> [ str ] {
276
+ fn rm_whitespace ( v : & [ str ] ) -> [ str ] {
277
277
fn flt ( s : & str ) -> option:: t [ str ] {
278
278
if !is_whitespace ( s) {
279
279
option:: some ( s)
@@ -289,17 +289,17 @@ fn split_maybe_args(argstr: &option::t[str]) -> vec[str] {
289
289
}
290
290
ret true;
291
291
}
292
- vec :: filter_map ( flt, v)
292
+ ivec :: filter_map ( flt, v)
293
293
}
294
294
295
295
alt argstr {
296
- option : : some ( s) { rm_whitespace ( str:: split ( s, ' ' as u8 ) ) }
297
- option:: none. { [ ] }
296
+ option : : some ( s) { rm_whitespace ( str:: split_ivec ( s, ' ' as u8 ) ) }
297
+ option:: none. { ~ [ ] }
298
298
}
299
299
}
300
300
301
301
fn program_output ( cx : & cx , testfile : & str , lib_path : & str , prog : & str ,
302
- args : & vec [ str ] , input : option:: t [ str ] ) -> procres {
302
+ args : & [ str ] , input : option:: t [ str ] ) -> procres {
303
303
let cmdline =
304
304
{
305
305
let cmdline = make_cmdline ( lib_path, prog, args) ;
@@ -313,9 +313,9 @@ fn program_output(cx: &cx, testfile: &str, lib_path: &str, prog: &str,
313
313
stderr : res. err , cmdline : cmdline} ;
314
314
}
315
315
316
- fn make_cmdline ( libpath : & str , prog : & str , args : & vec [ str ] ) -> str {
316
+ fn make_cmdline ( libpath : & str , prog : & str , args : & [ str ] ) -> str {
317
317
#fmt ( "%s %s %s" , lib_path_cmd_prefix ( libpath) , prog,
318
- str:: connect ( args, " " ) )
318
+ str:: connect_ivec ( args, " " ) )
319
319
}
320
320
321
321
// Build the LD_LIBRARY_PATH variable as it would be seen on the command line
0 commit comments