Skip to content

Commit 1f58cd5

Browse files
committed
---
yaml --- r: 23175 b: refs/heads/master c: 6e31183 h: refs/heads/master i: 23173: b14c090 23171: 906faed 23167: 9bc134b v: v3
1 parent 1d80092 commit 1f58cd5

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 87f4c153110743844e4b3a4bb9dcde31a5ef3eb4
2+
refs/heads/master: 6e311836140f86582501550da249c1df70427ab4
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/test/compile-fail/block-coerce-no-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ fn main() {
99
}
1010

1111
f(g);
12-
//~^ ERROR mismatched types: expected `extern fn(extern fn(extern fn()))`
12+
//~^ ERROR mismatched types: expected `fn(fn(fn&()))`
1313
}

trunk/src/test/compile-fail/block-coerce-no.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn coerce(b: fn()) -> extern fn() {
66
g: fn()) -> extern fn() { return f(g); }
77
fn fn_id(f: extern fn()) -> extern fn() { return f }
88
return lol(fn_id, b);
9-
//~^ ERROR mismatched types: expected `extern fn(fn&()) -> extern fn()`
9+
//~^ ERROR mismatched types: expected `fn(fn&()) -> fn()`
1010
}
1111

1212
fn main() {

trunk/src/test/compile-fail/extern-wrong-value-type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// error-pattern:expected `fn&()` but found `*u8`
1+
// error-pattern:expected `fn&<R0>()` but found `*u8`
22
extern fn f() {
33
}
44

trunk/src/test/compile-fail/fn-compare-mismatch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ fn main() {
22
fn f() { }
33
fn g(i: int) { }
44
let x = f == g;
5-
//~^ ERROR expected `extern fn()` but found `extern fn(int)`
5+
//~^ ERROR expected `fn()` but found `fn(int)`
66
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
fn main() -> char {
2-
//~^ ERROR Wrong type in main function: found `extern fn() -> char`
2+
//~^ ERROR Wrong type in main function: found `fn() -> char`
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
fn main(foo: {x: int, y: int}) {
2-
//~^ ERROR Wrong type in main function: found `extern fn({x: int,y: int})`
2+
//~^ ERROR Wrong type in main function: found `fn({x: int,y: int})`
33
}

trunk/src/test/compile-fail/missing-do.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ fn foo(f: fn()) { f() }
44

55
fn main() {
66
~"" || 42; //~ ERROR binary operation || cannot be applied to type `~str`
7-
foo || {}; //~ ERROR binary operation || cannot be applied to type `extern fn(fn&())`
7+
foo || {}; //~ ERROR binary operation || cannot be applied to type `fn(fn&())`
88
//~^ NOTE did you forget the 'do' keyword for the call?
99
}

trunk/src/test/compile-fail/pure-subtyping.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ fn assign_to_pure2(x: pure fn@(), y: fn@(), z: unsafe fn@()) {
2323
let b: pure fn() = y; //~ ERROR expected pure fn but found impure fn
2424
let c: pure fn() = z; //~ ERROR expected pure fn but found unsafe fn
2525

26-
let a: pure fn~() = x; //~ ERROR closure protocol mismatch (fn~ vs fn@)
27-
let b: pure fn~() = y; //~ ERROR closure protocol mismatch (fn~ vs fn@)
28-
let c: pure fn~() = z; //~ ERROR closure protocol mismatch (fn~ vs fn@)
26+
let a: pure fn~() = x; //~ ERROR fn storage differs: expected ~ but found @
27+
let b: pure fn~() = y; //~ ERROR fn storage differs: expected ~ but found @
28+
let c: pure fn~() = z; //~ ERROR fn storage differs: expected ~ but found @
2929

30-
let a: unsafe fn~() = x; //~ ERROR closure protocol mismatch (fn~ vs fn@)
31-
let b: unsafe fn~() = y; //~ ERROR closure protocol mismatch (fn~ vs fn@)
32-
let c: unsafe fn~() = z; //~ ERROR closure protocol mismatch (fn~ vs fn@)
30+
let a: unsafe fn~() = x; //~ ERROR fn storage differs: expected ~ but found @
31+
let b: unsafe fn~() = y; //~ ERROR fn storage differs: expected ~ but found @
32+
let c: unsafe fn~() = z; //~ ERROR fn storage differs: expected ~ but found @
3333
}
3434

3535
fn main() {
36-
}
36+
}

0 commit comments

Comments
 (0)