Skip to content

Commit ed806e9

Browse files
committed
---
yaml --- r: 29775 b: refs/heads/incoming c: 6e31183 h: refs/heads/master i: 29773: 8654b2a 29771: 3f955f4 29767: 45a057b 29759: 8f32114 v: v3
1 parent 36af986 commit ed806e9

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
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 87f4c153110743844e4b3a4bb9dcde31a5ef3eb4
9+
refs/heads/incoming: 6e311836140f86582501550da249c1df70427ab4
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/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
}

branches/incoming/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() {

branches/incoming/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

branches/incoming/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
}

branches/incoming/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
}

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