Skip to content

Commit 8ba0142

Browse files
committed
Update UI expectations
1 parent d1f1045 commit 8ba0142

18 files changed

+31
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,4 @@ error[E0277]: the trait bound `std::result::Result<BadType, wasm_bindgen::JsValu
4848
= note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result`
4949

5050
For more information about this error, try `rustc --explain E0277`.
51+
error: could not compile `wasm-bindgen-macro-tests`.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ 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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ 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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ 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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ 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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ 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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,5 @@ 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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,5 @@ 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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,5 @@ 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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ 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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, wasm_b
55
| ^^^ the trait `wasm_bindgen::convert::traits::FromWasmAbi` is not implemented for `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
66

77
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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ 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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not sa
88
| ^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
99

1010
For more information about this error, try `rustc --explain E0277`.
11+
error: could not compile `wasm-bindgen-macro-tests`.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ 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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ 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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ error[E0277]: the trait bound `A: wasm_bindgen::convert::traits::IntoWasmAbi` is
55
| ^^^ the trait `wasm_bindgen::convert::traits::IntoWasmAbi` is not implemented for `A`
66

77
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ error[E0412]: cannot find type `A` in this scope
55
| ^ not found in this scope
66

77
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

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

0 commit comments

Comments
 (0)