Skip to content

Commit

Permalink
Update UI expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Sep 20, 2019
1 parent d1f1045 commit 8ba0142
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/macro/ui-tests/async-errors.stderr
Expand Up @@ -48,3 +48,4 @@ error[E0277]: the trait bound `std::result::Result<BadType, wasm_bindgen::JsValu
= note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `wasm-bindgen-macro-tests`.
2 changes: 2 additions & 0 deletions crates/macro/ui-tests/attribute-fails-to-parse.stderr
Expand Up @@ -3,3 +3,5 @@ error: unknown attribute
|
3 | #[wasm_bindgen(nonsense)]
| ^^^^^^^^

error: could not compile `wasm-bindgen-macro-tests`.
2 changes: 2 additions & 0 deletions crates/macro/ui-tests/bad-signatures.stderr
Expand Up @@ -15,3 +15,5 @@ error: cannot return references in #[wasm_bindgen] imports yet
|
10 | fn foo() -> &u32;
| ^^^^

error: could not compile `wasm-bindgen-macro-tests`.
2 changes: 2 additions & 0 deletions crates/macro/ui-tests/import-local.stderr
Expand Up @@ -9,3 +9,5 @@ error: relative module paths aren't supported yet
|
8 | #[wasm_bindgen(module = "../foo.js")]
| ^^^^^^^^^^^

error: could not compile `wasm-bindgen-macro-tests`.
2 changes: 2 additions & 0 deletions crates/macro/ui-tests/invalid-attr.stderr
Expand Up @@ -15,3 +15,5 @@ error: malformed #[wasm_bindgen] attribute
|
11 | #[wasm_bindgen { }]
| ^^^^^^^^^^^^^^^^^^^^

error: could not compile `wasm-bindgen-macro-tests`.
2 changes: 2 additions & 0 deletions crates/macro/ui-tests/invalid-enums.stderr
Expand Up @@ -21,3 +21,5 @@ error: enums with #[wasm_bindgen] can only support numbers that can be represent
|
18 | X = 4294967296,
| ^^^^^^^^^^

error: could not compile `wasm-bindgen-macro-tests`.
2 changes: 2 additions & 0 deletions crates/macro/ui-tests/invalid-imports.stderr
Expand Up @@ -87,3 +87,5 @@ error: it is currently not sound to use lifetimes in function signatures
|
38 | fn f() -> Result<'a>;
| ^^

error: could not compile `wasm-bindgen-macro-tests`.
2 changes: 2 additions & 0 deletions crates/macro/ui-tests/invalid-items.stderr
Expand Up @@ -63,3 +63,5 @@ error: #[wasm_bindgen] can only be applied to a function, struct, enum, impl, or
|
34 | trait X {}
| ^^^^^^^^^^

error: could not compile `wasm-bindgen-macro-tests`.
2 changes: 2 additions & 0 deletions crates/macro/ui-tests/invalid-methods.stderr
Expand Up @@ -65,3 +65,5 @@ warning: unused macro definition
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_macros)]` on by default

error: could not compile `wasm-bindgen-macro-tests`.
2 changes: 2 additions & 0 deletions crates/macro/ui-tests/invalid-setter.stderr
Expand Up @@ -3,3 +3,5 @@ error: setters must start with `set_`, found: a
|
9 | fn a(this: &A, b: i32);
| ^

error: could not compile `wasm-bindgen-macro-tests`.
1 change: 1 addition & 0 deletions crates/macro/ui-tests/missing-catch.stderr
Expand Up @@ -5,3 +5,4 @@ error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, wasm_b
| ^^^ the trait `wasm_bindgen::convert::traits::FromWasmAbi` is not implemented for `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `wasm-bindgen-macro-tests`.
2 changes: 2 additions & 0 deletions crates/macro/ui-tests/non-public-function.stderr
Expand Up @@ -3,3 +3,5 @@ error: can only #[wasm_bindgen] public functions
|
4 | fn foo() {}
| ^^^^^^^^^^^

error: could not compile `wasm-bindgen-macro-tests`.
1 change: 1 addition & 0 deletions crates/macro/ui-tests/pub-not-copy.stderr
Expand Up @@ -8,3 +8,4 @@ error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not sa
| ^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `wasm-bindgen-macro-tests`.
2 changes: 2 additions & 0 deletions crates/macro/ui-tests/start-function.stderr
Expand Up @@ -9,3 +9,5 @@ error: the start function cannot have generics
|
10 | pub fn foo3<T>() {}
| ^^^

error: could not compile `wasm-bindgen-macro-tests`.
2 changes: 2 additions & 0 deletions crates/macro/ui-tests/structural-and-final.stderr
Expand Up @@ -3,3 +3,5 @@ error: cannot specify both `structural` and `final`
|
7 | #[wasm_bindgen(method, structural, final)]
| ^^^^^

error: could not compile `wasm-bindgen-macro-tests`.
1 change: 1 addition & 0 deletions crates/macro/ui-tests/traits-not-implemented.stderr
Expand Up @@ -5,3 +5,4 @@ error[E0277]: the trait bound `A: wasm_bindgen::convert::traits::IntoWasmAbi` is
| ^^^ the trait `wasm_bindgen::convert::traits::IntoWasmAbi` is not implemented for `A`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `wasm-bindgen-macro-tests`.
1 change: 1 addition & 0 deletions crates/macro/ui-tests/unknown-type-in-import.stderr
Expand Up @@ -5,3 +5,4 @@ error[E0412]: cannot find type `A` in this scope
| ^ not found in this scope

For more information about this error, try `rustc --explain E0412`.
error: could not compile `wasm-bindgen-macro-tests`.
2 changes: 2 additions & 0 deletions crates/macro/ui-tests/unused-attributes.stderr
Expand Up @@ -9,3 +9,5 @@ error: unused #[wasm_bindgen] attribute
|
8 | #[wasm_bindgen(method)]
| ^^^^^^

error: could not compile `wasm-bindgen-macro-tests`.

0 comments on commit 8ba0142

Please sign in to comment.