Skip to content

Commit af61000

Browse files
committed
---
yaml --- r: 107741 b: refs/heads/dist-snap c: d904179 h: refs/heads/master i: 107739: 4ccb3fb v: v3
1 parent 89ad990 commit af61000

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 518a5e08c038fb74ba0efa8b29c7f80b7a42b970
9+
refs/heads/dist-snap: d904179066b407c32ca247938560fcf8766e5ff3
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustpkg/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,14 +799,14 @@ pub fn main_args(args: &[~str]) -> int {
799799
debug!("Will store workcache in {}", ws.display());
800800

801801
// 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() {
803803
BuildContext {
804804
context: context,
805805
sysroot: sysroot.clone(), // Currently, only tests override this
806806
workcache_context: api::default_context(sysroot.clone(),
807807
default_workspace()).workcache_context
808808
}.run(command, args.clone())
809-
};
809+
});
810810
// FIXME #9262: This is using the same error code for all errors,
811811
// and at least one test case succeeds if rustpkg returns COPY_FAILED_CODE,
812812
// when actually, it might set the exit code for that even if a different

branches/dist-snap/src/librustpkg/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,13 +607,13 @@ fn test_install_invalid() {
607607
let ctxt = fake_ctxt(sysroot, &temp_workspace);
608608

609609
// Uses task::try because of #9001
610-
let result = do task::try {
610+
let result = task::try(proc() {
611611
let pkg_src = PkgSrc::new(temp_workspace.clone(),
612612
temp_workspace.clone(),
613613
false,
614614
crateid.clone());
615615
ctxt.install(pkg_src, &WhatToBuild::new(MaybeCustom, Everything));
616-
};
616+
});
617617
assert!(result.unwrap_err()
618618
.to_str().contains("supplied path for package dir does not exist"));
619619
}

branches/dist-snap/src/librustpkg/testsuite/pass/src/c-dependencies/pkg.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub fn main() {
5050
prep.declare_input("file",
5151
foo_c_name.as_str().unwrap().to_owned(),
5252
digest_file_with_date(&foo_c_name));
53-
let out_path = do prep.exec |exec| {
53+
let out_path = prep.exec(|exec| {
5454
let out_path = api::build_library_in_workspace(exec,
5555
&mut sub_cx.clone(),
5656
"cdep",
@@ -60,22 +60,22 @@ pub fn main() {
6060
"foo");
6161
let out_p = Path::new(out_path.unwrap());
6262
out_p.as_str().unwrap().to_owned()
63-
};
63+
});
6464
out_path
6565
});
6666
let out_lib_path = Path::new(out_lib_path);
6767
debug!("out_lib_path = {}", out_lib_path.display());
6868
context.add_library_path(out_lib_path.dir_path());
6969

7070
let context_clone = context.clone();
71-
let task_res = do task::try {
71+
let task_res = task::try(proc() {
7272
let mut cc = context_clone.clone();
7373
api::install_pkg(&mut cc,
7474
os::getcwd(),
7575
~"cdep",
7676
None,
7777
~[(~"binary", out_lib_path.clone()), (~"file", foo_c_name.clone())]);
78-
};
78+
});
7979

8080
if task_res.is_err() {
8181
os::set_exit_status(COPY_FAILED_CODE);

0 commit comments

Comments
 (0)