Skip to content

Commit e7bfa16

Browse files
committed
Fix UI tests for updated beta
1 parent 2a12ca2 commit e7bfa16

19 files changed

+1
-40
lines changed

crates/macro/ui-tests/async-errors.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,3 @@ error[E0277]: the trait bound `std::result::Result<BadType, wasm_bindgen::JsValu
4646
<std::result::Result<(), E> as wasm_bindgen::__rt::IntoJsResult>
4747
<std::result::Result<T, E> as wasm_bindgen::__rt::IntoJsResult>
4848
= note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result`
49-
50-
For more information about this error, try `rustc --explain E0277`.

crates/macro/ui-tests/attribute-fails-to-parse.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ error: unknown attribute
33
|
44
3 | #[wasm_bindgen(nonsense)]
55
| ^^^^^^^^
6-
7-
error: could not compile `wasm-bindgen-macro-tests`.

crates/macro/ui-tests/bad-signatures.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@ error: cannot return references in #[wasm_bindgen] imports yet
1515
|
1616
10 | fn foo() -> &u32;
1717
| ^^^^
18-
19-
error: could not compile `wasm-bindgen-macro-tests`.

crates/macro/ui-tests/import-local.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,3 @@ error: relative module paths aren't supported yet
99
|
1010
8 | #[wasm_bindgen(module = "../foo.js")]
1111
| ^^^^^^^^^^^
12-
13-
error: could not compile `wasm-bindgen-macro-tests`.

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

-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@ error: malformed #[wasm_bindgen] attribute
1515
|
1616
11 | #[wasm_bindgen { }]
1717
| ^^^^^^^^^^^^^^^^^^^^
18-
19-
error: could not compile `wasm-bindgen-macro-tests`.

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

-2
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,3 @@ error: enums with #[wasm_bindgen] can only support numbers that can be represent
2121
|
2222
18 | X = 4294967296,
2323
| ^^^^^^^^^^
24-
25-
error: could not compile `wasm-bindgen-macro-tests`.

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

-2
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,3 @@ error: it is currently not sound to use lifetimes in function signatures
8787
|
8888
38 | fn f() -> Result<'a>;
8989
| ^^
90-
91-
error: could not compile `wasm-bindgen-macro-tests`.

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

-2
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,3 @@ error: #[wasm_bindgen] can only be applied to a function, struct, enum, impl, or
6363
|
6464
34 | trait X {}
6565
| ^^^^^^^^^^
66-
67-
error: could not compile `wasm-bindgen-macro-tests`.

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

-2
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,3 @@ warning: unused macro definition
6565
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6666
|
6767
= note: `#[warn(unused_macros)]` on by default
68-
69-
error: could not compile `wasm-bindgen-macro-tests`.

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

-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ error: setters must start with `set_`, found: a
33
|
44
9 | fn a(this: &A, b: i32);
55
| ^
6-
7-
error: could not compile `wasm-bindgen-macro-tests`.

crates/macro/ui-tests/missing-catch.stderr

-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@ error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, wasm_b
33
|
44
6 | pub fn foo() -> Result<JsValue, JsValue>;
55
| ^^^ the trait `wasm_bindgen::convert::traits::FromWasmAbi` is not implemented for `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
6-
7-
For more information about this error, try `rustc --explain E0277`.
8-
error: could not compile `wasm-bindgen-macro-tests`.

crates/macro/ui-tests/non-public-function.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ error: can only #[wasm_bindgen] public functions
33
|
44
4 | fn foo() {}
55
| ^^^^^^^^^^^
6-
7-
error: could not compile `wasm-bindgen-macro-tests`.

crates/macro/ui-tests/pub-not-copy.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,3 @@ error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not sa
88
4 | pub struct A {
99
5 | pub field: String,
1010
| ^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
11-
12-
For more information about this error, try `rustc --explain E0277`.

crates/macro/ui-tests/start-function.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,3 @@ error: the start function cannot have generics
99
|
1010
10 | pub fn foo3<T>() {}
1111
| ^^^
12-
13-
error: could not compile `wasm-bindgen-macro-tests`.

crates/macro/ui-tests/structural-and-final.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ error: cannot specify both `structural` and `final`
33
|
44
7 | #[wasm_bindgen(method, structural, final)]
55
| ^^^^^
6-
7-
error: could not compile `wasm-bindgen-macro-tests`.

crates/macro/ui-tests/traits-not-implemented.stderr

-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@ error[E0277]: the trait bound `A: wasm_bindgen::convert::traits::IntoWasmAbi` is
33
|
44
8 | pub fn foo(a: A);
55
| ^^^ the trait `wasm_bindgen::convert::traits::IntoWasmAbi` is not implemented for `A`
6-
7-
For more information about this error, try `rustc --explain E0277`.
8-
error: could not compile `wasm-bindgen-macro-tests`.

crates/macro/ui-tests/unknown-type-in-import.stderr

-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@ error[E0412]: cannot find type `A` in this scope
33
|
44
6 | pub fn foo(a: A);
55
| ^ not found in this scope
6-
7-
For more information about this error, try `rustc --explain E0412`.
8-
error: could not compile `wasm-bindgen-macro-tests`.

crates/macro/ui-tests/unused-attributes.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,3 @@ error: unused #[wasm_bindgen] attribute
99
|
1010
8 | #[wasm_bindgen(method)]
1111
| ^^^^^^
12-
13-
error: could not compile `wasm-bindgen-macro-tests`.

src/closure.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ macro_rules! doit {
642642
}
643643
}
644644

645-
#[allow(non_snake_case)]
645+
#[allow(non_snake_case, unused_parens)]
646646
impl<T, $($var,)* R> WasmClosureFnOnce<($($var),*), R> for T
647647
where T: 'static + FnOnce($($var),*) -> R,
648648
$($var: FromWasmAbi + 'static,)*

0 commit comments

Comments
 (0)