mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
Remove '.' after nullary tags in patterns
Does what it says on the tin. The next commit will remove support for this syntax.
This commit is contained in:
+4
-4
@@ -369,8 +369,8 @@ fn try<T:send>(+f: fn~() -> T) -> result::t<T,()> {
|
||||
unsupervise();
|
||||
comm::send(ch, f());
|
||||
}) {
|
||||
tr_success. { result::ok(comm::recv(p)) }
|
||||
tr_failure. { result::err(()) }
|
||||
tr_success { result::ok(comm::recv(p)) }
|
||||
tr_failure { result::err(()) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -405,7 +405,7 @@ fn winner() { }
|
||||
|
||||
let t = spawn_joinable {|| winner();};
|
||||
alt join(t) {
|
||||
tr_success. {/* yay! */ }
|
||||
tr_success {/* yay! */ }
|
||||
_ { fail "invalid task status received" }
|
||||
}
|
||||
}
|
||||
@@ -418,7 +418,7 @@ fn test_join_chan_fail() {
|
||||
|
||||
let t = spawn_joinable {|| failer();};
|
||||
alt join(t) {
|
||||
tr_failure. {/* yay! */ }
|
||||
tr_failure {/* yay! */ }
|
||||
_ { fail "invalid task status received" }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user