File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/test/run-make/unicode-input Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 88// option. This file may not be copied, modified, or distributed
99// except according to those terms.
1010
11- use std:: { char, os, run , str} ;
11+ use std:: { char, os, str} ;
1212use std:: rand:: { task_rng, Rng } ;
13- use std:: io:: File ;
13+ use std:: io:: { File , Process } ;
1414
1515// creates unicode_input_multiple_files_{main,chars}.rs, where the
1616// former imports the latter. `_chars` just contains an indentifier
@@ -55,7 +55,7 @@ fn main() {
5555
5656 // rustc is passed to us with --out-dir and -L etc., so we
5757 // can't exec it directly
58- let result = run :: process_output ( "sh" , [ ~"-c", rustc + " " + main_file_str] ) . unwrap ( ) ;
58+ let result = Process :: output ( "sh" , [ ~"-c", rustc + " " + main_file_str] ) . unwrap ( ) ;
5959 let err = str:: from_utf8_lossy ( result. error ) ;
6060
6161 // positive test so that this test will be updated when the
Original file line number Diff line number Diff line change 88// option. This file may not be copied, modified, or distributed
99// except according to those terms.
1010
11- use std:: { char, os, run , str} ;
11+ use std:: { char, os, str} ;
1212use std:: rand:: { task_rng, Rng } ;
13- use std:: io:: File ;
13+ use std:: io:: { File , Process } ;
1414
1515// creates a file with `fn main() { <random ident> }` and checks the
1616// compiler emits a span of the appropriate length (for the
@@ -51,7 +51,7 @@ fn main() {
5151
5252 // rustc is passed to us with --out-dir and -L etc., so we
5353 // can't exec it directly
54- let result = run :: process_output ( "sh" , [ ~"-c", rustc + " " + main_file_str] ) . unwrap ( ) ;
54+ let result = Process :: output ( "sh" , [ ~"-c", rustc + " " + main_file_str] ) . unwrap ( ) ;
5555
5656 let err = str:: from_utf8_lossy ( result. error ) ;
5757
You can’t perform that action at this time.
0 commit comments