librustc: Stop parsing modes and remove them entirely from the language

This commit is contained in:
Patrick Walton
2013-05-07 14:20:56 -07:00
parent 99daec602f
commit 49a66a5c5a
22 changed files with 78 additions and 73 deletions

View File

@@ -371,7 +371,7 @@ pub impl TaskBuilder {
let (po, ch) = stream::<T>();
let mut result = None;
self.future_result(|+r| { result = Some(r); });
self.future_result(|r| { result = Some(r); });
do self.spawn {
ch.send(f());
@@ -791,11 +791,11 @@ fn test_add_wrapper() {
#[ignore(cfg(windows))]
fn test_future_result() {
let mut result = None;
do task().future_result(|+r| { result = Some(r); }).spawn { }
do task().future_result(|r| { result = Some(r); }).spawn { }
assert!(result.unwrap().recv() == Success);
result = None;
do task().future_result(|+r|
do task().future_result(|r|
{ result = Some(r); }).unlinked().spawn {
fail!();
}