mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
Fix UI tests for updated beta
This commit is contained in:
parent
2a12ca2a4f
commit
e7bfa161e0
@ -46,5 +46,3 @@ error[E0277]: the trait bound `std::result::Result<BadType, wasm_bindgen::JsValu
|
||||
<std::result::Result<(), E> as wasm_bindgen::__rt::IntoJsResult>
|
||||
<std::result::Result<T, E> as wasm_bindgen::__rt::IntoJsResult>
|
||||
= note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result`
|
||||
|
||||
For more information about this error, try `rustc --explain E0277`.
|
||||
|
@ -3,5 +3,3 @@ error: unknown attribute
|
||||
|
|
||||
3 | #[wasm_bindgen(nonsense)]
|
||||
| ^^^^^^^^
|
||||
|
||||
error: could not compile `wasm-bindgen-macro-tests`.
|
||||
|
@ -15,5 +15,3 @@ error: cannot return references in #[wasm_bindgen] imports yet
|
||||
|
|
||||
10 | fn foo() -> &u32;
|
||||
| ^^^^
|
||||
|
||||
error: could not compile `wasm-bindgen-macro-tests`.
|
||||
|
@ -9,5 +9,3 @@ error: relative module paths aren't supported yet
|
||||
|
|
||||
8 | #[wasm_bindgen(module = "../foo.js")]
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: could not compile `wasm-bindgen-macro-tests`.
|
||||
|
@ -15,5 +15,3 @@ error: malformed #[wasm_bindgen] attribute
|
||||
|
|
||||
11 | #[wasm_bindgen { }]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: could not compile `wasm-bindgen-macro-tests`.
|
||||
|
@ -21,5 +21,3 @@ error: enums with #[wasm_bindgen] can only support numbers that can be represent
|
||||
|
|
||||
18 | X = 4294967296,
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error: could not compile `wasm-bindgen-macro-tests`.
|
||||
|
@ -87,5 +87,3 @@ 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`.
|
||||
|
@ -63,5 +63,3 @@ 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`.
|
||||
|
@ -65,5 +65,3 @@ warning: unused macro definition
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(unused_macros)]` on by default
|
||||
|
||||
error: could not compile `wasm-bindgen-macro-tests`.
|
||||
|
@ -3,5 +3,3 @@ error: setters must start with `set_`, found: a
|
||||
|
|
||||
9 | fn a(this: &A, b: i32);
|
||||
| ^
|
||||
|
||||
error: could not compile `wasm-bindgen-macro-tests`.
|
||||
|
@ -3,6 +3,3 @@ error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, wasm_b
|
||||
|
|
||||
6 | pub fn foo() -> Result<JsValue, JsValue>;
|
||||
| ^^^ 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`.
|
||||
|
@ -3,5 +3,3 @@ error: can only #[wasm_bindgen] public functions
|
||||
|
|
||||
4 | fn foo() {}
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: could not compile `wasm-bindgen-macro-tests`.
|
||||
|
@ -8,5 +8,3 @@ error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not sa
|
||||
4 | pub struct A {
|
||||
5 | pub field: String,
|
||||
| ^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
|
||||
|
||||
For more information about this error, try `rustc --explain E0277`.
|
||||
|
@ -9,5 +9,3 @@ error: the start function cannot have generics
|
||||
|
|
||||
10 | pub fn foo3<T>() {}
|
||||
| ^^^
|
||||
|
||||
error: could not compile `wasm-bindgen-macro-tests`.
|
||||
|
@ -3,5 +3,3 @@ error: cannot specify both `structural` and `final`
|
||||
|
|
||||
7 | #[wasm_bindgen(method, structural, final)]
|
||||
| ^^^^^
|
||||
|
||||
error: could not compile `wasm-bindgen-macro-tests`.
|
||||
|
@ -3,6 +3,3 @@ error[E0277]: the trait bound `A: wasm_bindgen::convert::traits::IntoWasmAbi` is
|
||||
|
|
||||
8 | pub fn foo(a: A);
|
||||
| ^^^ 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`.
|
||||
|
@ -3,6 +3,3 @@ error[E0412]: cannot find type `A` in this scope
|
||||
|
|
||||
6 | pub fn foo(a: A);
|
||||
| ^ not found in this scope
|
||||
|
||||
For more information about this error, try `rustc --explain E0412`.
|
||||
error: could not compile `wasm-bindgen-macro-tests`.
|
||||
|
@ -9,5 +9,3 @@ error: unused #[wasm_bindgen] attribute
|
||||
|
|
||||
8 | #[wasm_bindgen(method)]
|
||||
| ^^^^^^
|
||||
|
||||
error: could not compile `wasm-bindgen-macro-tests`.
|
||||
|
@ -642,7 +642,7 @@ macro_rules! doit {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[allow(non_snake_case, unused_parens)]
|
||||
impl<T, $($var,)* R> WasmClosureFnOnce<($($var),*), R> for T
|
||||
where T: 'static + FnOnce($($var),*) -> R,
|
||||
$($var: FromWasmAbi + 'static,)*
|
||||
|
Loading…
x
Reference in New Issue
Block a user