Skip to content

Commit 4c85e72

Browse files
committed
---
yaml --- r: 38383 b: refs/heads/try c: 89ed595 h: refs/heads/master i: 38381: fad922c 38379: 1a0fad9 38375: 98e7ef7 38367: d1fb349 v: v3
1 parent 758a854 commit 4c85e72

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5-
refs/heads/try: 8a687dd8e428ac301fabe8110bcd3b630a78ad46
5+
refs/heads/try: 89ed595e306a7f391b561ee8a5a1e7aca24bf534
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/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/try/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/try/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/try/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/try/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)