File tree 2 files changed +6
-6
lines changed
src/test/run-make/unicode-input
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- use std:: { char, os, run , str} ;
11
+ use std:: { char, os, str} ;
12
12
use std:: rand:: { task_rng, Rng } ;
13
- use std:: io:: File ;
13
+ use std:: io:: { File , Process } ;
14
14
15
15
// creates unicode_input_multiple_files_{main,chars}.rs, where the
16
16
// former imports the latter. `_chars` just contains an indentifier
@@ -55,7 +55,7 @@ fn main() {
55
55
56
56
// rustc is passed to us with --out-dir and -L etc., so we
57
57
// 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 ( ) ;
59
59
let err = str:: from_utf8_lossy ( result. error ) ;
60
60
61
61
// positive test so that this test will be updated when the
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- use std:: { char, os, run , str} ;
11
+ use std:: { char, os, str} ;
12
12
use std:: rand:: { task_rng, Rng } ;
13
- use std:: io:: File ;
13
+ use std:: io:: { File , Process } ;
14
14
15
15
// creates a file with `fn main() { <random ident> }` and checks the
16
16
// compiler emits a span of the appropriate length (for the
@@ -51,7 +51,7 @@ fn main() {
51
51
52
52
// rustc is passed to us with --out-dir and -L etc., so we
53
53
// 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 ( ) ;
55
55
56
56
let err = str:: from_utf8_lossy ( result. error ) ;
57
57
You can’t perform that action at this time.
0 commit comments