Skip to content

Commit 1116af4

Browse files
authored
Merge pull request #1309 from dlrobertson/master
Update tests after nightly fix
2 parents fe604d4 + 7ad5426 commit 1116af4

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

crates/macro/ui-tests/invalid-items.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ struct Foo<T>(T);
2020
extern "C" {
2121
static mut FOO: u32;
2222

23-
// FIXME(rust-lang/rust#58853) recent regression needs fixing before
24-
// re-enabling.
25-
// pub fn foo3(x: i32, ...);
23+
pub fn foo3(x: i32, ...);
2624
}
2725

2826
#[wasm_bindgen]

crates/macro/ui-tests/invalid-items.stderr

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,35 +28,41 @@ error: cannot import mutable globals yet
2828
21 | static mut FOO: u32;
2929
| ^^^
3030

31+
error: can't #[wasm_bindgen] variadic functions
32+
--> $DIR/invalid-items.rs:23:25
33+
|
34+
23 | pub fn foo3(x: i32, ...);
35+
| ^^^
36+
3137
error: only foreign mods with the `C` ABI are allowed
32-
--> $DIR/invalid-items.rs:29:8
38+
--> $DIR/invalid-items.rs:27:8
3339
|
34-
29 | extern "system" {
40+
27 | extern "system" {
3541
| ^^^^^^^^
3642

3743
error: can't #[wasm_bindgen] functions with lifetime or type parameters
38-
--> $DIR/invalid-items.rs:33:12
44+
--> $DIR/invalid-items.rs:31:12
3945
|
40-
33 | pub fn foo4<T>() {}
46+
31 | pub fn foo4<T>() {}
4147
| ^^^
4248

4349
error: can't #[wasm_bindgen] functions with lifetime or type parameters
44-
--> $DIR/invalid-items.rs:35:12
50+
--> $DIR/invalid-items.rs:33:12
4551
|
46-
35 | pub fn foo5<'a>() {}
52+
33 | pub fn foo5<'a>() {}
4753
| ^^^^
4854

4955
error: can't #[wasm_bindgen] functions with lifetime or type parameters
50-
--> $DIR/invalid-items.rs:37:12
56+
--> $DIR/invalid-items.rs:35:12
5157
|
52-
37 | pub fn foo6<'a, T>() {}
58+
35 | pub fn foo6<'a, T>() {}
5359
| ^^^^^^^
5460

5561
error: #[wasm_bindgen] can only be applied to a function, struct, enum, impl, or extern block
56-
--> $DIR/invalid-items.rs:40:1
62+
--> $DIR/invalid-items.rs:38:1
5763
|
58-
40 | trait X {}
64+
38 | trait X {}
5965
| ^^^^^^^^^^
6066

61-
error: aborting due to 10 previous errors
67+
error: aborting due to 11 previous errors
6268

0 commit comments

Comments
 (0)