Skip to content

Commit ce570e9

Browse files
committed
---
yaml --- r: 10591 b: refs/heads/snap-stage3 c: e30a8b6 h: refs/heads/master i: 10589: d292b4d 10587: 8f04389 10583: 2eb694c 10575: 1c3017b 10559: 76cd7e7 v: v3
1 parent 9556504 commit ce570e9

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 3cf582b5291b9ab72cac6d54abb405017922475c
4+
refs/heads/snap-stage3: e30a8b6f8c9b55865c218152ac3066e21a22a953
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/rustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ fn type_kind(cx: ctxt, ty: t) -> kind {
16081608
}
16091609
ty_res(did, inner, tps) {
16101610
let inner = subst(cx, tps, inner);
1611-
(kind_const() & type_kind(cx, inner)) | kind_send_only()
1611+
(kind_const() | kind_send_only()) & type_kind(cx, inner)
16121612
}
16131613
ty_param(_, did) {
16141614
param_bounds_to_kind(cx.ty_param_bounds.get(did.node))
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
fn main() {
2+
resource foo(_x: comm::port<()>) {}
3+
4+
let x = ~mut some(foo(comm::port()));
5+
6+
task::spawn {|move x| //! ERROR not a sendable value
7+
let mut y = none;
8+
*x <-> y;
9+
log(error, y);
10+
}
11+
}

0 commit comments

Comments
 (0)