File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
testsuite/pass/src/c-dependencies Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -799,14 +799,14 @@ pub fn main_args(args: &[~str]) -> int {
799
799
debug ! ( "Will store workcache in {}" , ws. display( ) ) ;
800
800
801
801
// Wrap the rest in task::try in case of a condition failure in a task
802
- let result = do task:: try {
802
+ let result = task:: try ( proc ( ) {
803
803
BuildContext {
804
804
context : context,
805
805
sysroot : sysroot. clone ( ) , // Currently, only tests override this
806
806
workcache_context : api:: default_context ( sysroot. clone ( ) ,
807
807
default_workspace ( ) ) . workcache_context
808
808
} . run ( command, args. clone ( ) )
809
- } ;
809
+ } ) ;
810
810
// FIXME #9262: This is using the same error code for all errors,
811
811
// and at least one test case succeeds if rustpkg returns COPY_FAILED_CODE,
812
812
// when actually, it might set the exit code for that even if a different
Original file line number Diff line number Diff line change @@ -607,13 +607,13 @@ fn test_install_invalid() {
607
607
let ctxt = fake_ctxt ( sysroot, & temp_workspace) ;
608
608
609
609
// Uses task::try because of #9001
610
- let result = do task:: try {
610
+ let result = task:: try ( proc ( ) {
611
611
let pkg_src = PkgSrc :: new ( temp_workspace. clone ( ) ,
612
612
temp_workspace. clone ( ) ,
613
613
false ,
614
614
crateid. clone ( ) ) ;
615
615
ctxt. install ( pkg_src, & WhatToBuild :: new ( MaybeCustom , Everything ) ) ;
616
- } ;
616
+ } ) ;
617
617
assert ! ( result. unwrap_err( )
618
618
. to_str( ) . contains( "supplied path for package dir does not exist" ) ) ;
619
619
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ pub fn main() {
50
50
prep. declare_input ( "file" ,
51
51
foo_c_name. as_str ( ) . unwrap ( ) . to_owned ( ) ,
52
52
digest_file_with_date ( & foo_c_name) ) ;
53
- let out_path = do prep. exec |exec| {
53
+ let out_path = prep. exec ( |exec| {
54
54
let out_path = api:: build_library_in_workspace ( exec,
55
55
& mut sub_cx. clone ( ) ,
56
56
"cdep" ,
@@ -60,22 +60,22 @@ pub fn main() {
60
60
"foo" ) ;
61
61
let out_p = Path :: new ( out_path. unwrap ( ) ) ;
62
62
out_p. as_str ( ) . unwrap ( ) . to_owned ( )
63
- } ;
63
+ } ) ;
64
64
out_path
65
65
} ) ;
66
66
let out_lib_path = Path :: new ( out_lib_path) ;
67
67
debug ! ( "out_lib_path = {}" , out_lib_path. display( ) ) ;
68
68
context. add_library_path ( out_lib_path. dir_path ( ) ) ;
69
69
70
70
let context_clone = context. clone ( ) ;
71
- let task_res = do task:: try {
71
+ let task_res = task:: try ( proc ( ) {
72
72
let mut cc = context_clone. clone ( ) ;
73
73
api:: install_pkg ( & mut cc,
74
74
os:: getcwd ( ) ,
75
75
~"cdep",
76
76
None ,
77
77
~[ ( ~"binary", out_lib_path. clone ( ) ) , ( ~"file", foo_c_name. clone ( ) ) ] ) ;
78
- } ;
78
+ } ) ;
79
79
80
80
if task_res. is_err ( ) {
81
81
os:: set_exit_status ( COPY_FAILED_CODE ) ;
You can’t perform that action at this time.
0 commit comments