Skip to content

Commit 825a567

Browse files
committed
---
yaml --- r: 34491 b: refs/heads/snap-stage3 c: 89ed595 h: refs/heads/master i: 34489: 61bfdb6 34487: 6096f5a v: v3
1 parent b9f6ad4 commit 825a567

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
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: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 8a687dd8e428ac301fabe8110bcd3b630a78ad46
4+
refs/heads/snap-stage3: 89ed595e306a7f391b561ee8a5a1e7aca24bf534
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/test/compile-fail/access-mode-in-closures.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
enum sty = ~[int];
22

3-
fn unpack(unpack: &fn(v: &sty) -> ~[int]) {}
3+
fn unpack(_unpack: &fn(v: &sty) -> ~[int]) {}
44

55
fn main() {
6-
let foo = unpack(|s| {
6+
let _foo = unpack(|s| {
77
// Test that `s` is moved here.
88
match *s { sty(v) => v } //~ ERROR moving out of dereference of immutable & pointer
99
});

branches/snap-stage3/src/test/compile-fail/issue-2548.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ fn main() {
3232

3333
{
3434
let mut res = foo(x);
35-
35+
3636
let mut v = ~[mut];
37-
v = move ~[mut (move res)] + v; //~ ERROR instantiating a type parameter with an incompatible type (needs `copy`, got `durable`, missing `copy`)
37+
v = move ~[mut (move res)] + v; //~ ERROR instantiating a type parameter with an incompatible type (needs `copy`, got `&static`, missing `copy`)
3838
assert (v.len() == 2);
3939
}
4040

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn to_foo<T:Copy>(t: T) {
3232
fn to_foo_2<T:Copy>(t: T) -> foo {
3333
// Not OK---T may contain borrowed ptrs and it is going to escape
3434
// as part of the returned foo value
35-
{f:t} as foo //~ ERROR value may contain borrowed pointers; use `durable` bound
35+
{f:t} as foo //~ ERROR value may contain borrowed pointers; use `&static` bound
3636
}
3737

3838
fn to_foo_3<T:Copy &static>(t: T) -> foo {

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

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

1313
fn to_foo<T: Copy foo>(t: T) -> foo {
14-
t as foo //~ ERROR value may contain borrowed pointers; use `durable` bound
14+
t as foo //~ ERROR value may contain borrowed pointers; use `&static` bound
1515
}
1616

1717
fn to_foo2<T: Copy foo &static>(t: T) -> foo {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ fn copy2<T: Copy &static>(t: T) -> fn@() -> T {
1818

1919
fn main() {
2020
let x = &3;
21-
copy2(&x); //~ ERROR missing `durable`
21+
copy2(&x); //~ ERROR missing `&static`
2222

2323
copy2(@3);
24-
copy2(@&x); //~ ERROR missing `durable`
24+
copy2(@&x); //~ ERROR missing `&static`
2525

2626
copy2(fn@() {});
2727
copy2(fn~() {}); //~ WARNING instantiating copy type parameter with a not implicitly copyable type
28-
copy2(fn&() {}); //~ ERROR missing `copy durable`
28+
copy2(fn&() {}); //~ ERROR missing `copy &static`
2929
}

0 commit comments

Comments
 (0)