Skip to content

Commit 83c0bc7

Browse files
committed
---
yaml --- r: 63731 b: refs/heads/snap-stage3 c: d0f56db h: refs/heads/master i: 63729: c80b52a 63727: 174f1d6 v: v3
1 parent befa5db commit 83c0bc7

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: ffc8c0ba210630121c58290b1652fea66e0d1da8
4+
refs/heads/snap-stage3: d0f56db9630f4b01a6a170aac220aa1b891d5016
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/test/compile-fail/kindck-nonsendable-1.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn foo(_x: @uint) {}
1212

1313
fn main() {
1414
let x = @3u;
15-
let _: ~fn() = || foo(x); //~ ERROR value has non-owned type `@uint`
16-
let _: ~fn() = || foo(x); //~ ERROR value has non-owned type `@uint`
17-
let _: ~fn() = || foo(x); //~ ERROR value has non-owned type `@uint`
15+
let _: ~fn() = || foo(x); //~ ERROR does not fulfill `Owned`
16+
let _: ~fn() = || foo(x); //~ ERROR does not fulfill `Owned`
17+
let _: ~fn() = || foo(x); //~ ERROR does not fulfill `Owned`
1818
}

branches/snap-stage3/src/test/compile-fail/kindck-owned-trait.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
trait foo { fn foo(&self); }
1212

1313
fn to_foo<T:Copy + foo>(t: T) -> @foo {
14-
@t as @foo //~ ERROR value may contain borrowed pointers; add `'static` bound
14+
@t as @foo
15+
//~^ ERROR value may contain borrowed pointers; add `'static` bound
16+
//~^^ ERROR cannot pack type
1517
}
1618

1719
fn to_foo2<T:Copy + foo + 'static>(t: T) -> @foo {

branches/snap-stage3/src/test/compile-fail/kindck-owned.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
// except according to those terms.
1010

1111
fn copy1<T:Copy>(t: T) -> @fn() -> T {
12-
let result: @fn() -> T = || copy t;
13-
//~^ ERROR value may contain borrowed pointers
12+
let result: @fn() -> T = || copy t; //~ ERROR does not fulfill `'static`
1413
result
1514
}
1615

branches/snap-stage3/src/test/compile-fail/no-send-res-ports.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn main() {
3232
let x = Cell::new(foo(Port(@())));
3333

3434
do task::spawn {
35-
let y = x.take(); //~ ERROR value has non-owned type
35+
let y = x.take(); //~ ERROR does not fulfill `Owned`
3636
error!(y);
3737
}
3838
}

0 commit comments

Comments
 (0)