We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28e1a4d commit 4849b1eCopy full SHA for 4849b1e
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 40559ea83961df06c82f76c333ce4c9604f12449
+refs/heads/master: 28ab0e8c0335544359d1809a40682f38c9610b78
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
trunk/src/libcore/newcomm.rs
@@ -34,14 +34,8 @@ fn send<T: send>(c: chan<T>, -x: T) {
34
(*c).with {|cond, data|
35
let mut xx = none;
36
xx <-> x;
37
- alt xx {
38
- some(y) {
39
- let mut x <- y;
40
- (*data).push(x);
41
- cond.signal();
42
- }
43
- none { fail }
44
- };
+ (*data).push(option::unwrap(xx));
+ cond.signal();
45
}
46
47
0 commit comments