Skip to content

Commit

Permalink
Update ui-tests expected results
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0rek committed Dec 11, 2024
1 parent 9b61ffe commit 0fd7da9
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 60 deletions.
16 changes: 8 additions & 8 deletions crates/macro/ui-tests/async-errors.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ error[E0277]: the trait bound `wasm_bindgen::JsValue: From<BadType>` is not sati
| ^^^^^^^ the trait `From<BadType>` is not implemented for `wasm_bindgen::JsValue`, which is required by `BadType: IntoJsResult`
|
= help: the following other types implement trait `From<T>`:
<wasm_bindgen::JsValue as From<bool>>
<wasm_bindgen::JsValue as From<isize>>
<wasm_bindgen::JsValue as From<i8>>
<wasm_bindgen::JsValue as From<i16>>
<wasm_bindgen::JsValue as From<i32>>
<wasm_bindgen::JsValue as From<i64>>
<wasm_bindgen::JsValue as From<i128>>
<wasm_bindgen::JsValue as From<usize>>
`wasm_bindgen::JsValue` implements `From<&'a String>`
`wasm_bindgen::JsValue` implements `From<&'a T>`
`wasm_bindgen::JsValue` implements `From<&'a str>`
`wasm_bindgen::JsValue` implements `From<*const T>`
`wasm_bindgen::JsValue` implements `From<*mut T>`
`wasm_bindgen::JsValue` implements `From<Array>`
`wasm_bindgen::JsValue` implements `From<ArrayBuffer>`
`wasm_bindgen::JsValue` implements `From<BigInt64Array>`
and $N others
= note: required for `BadType` to implement `Into<wasm_bindgen::JsValue>`
= note: required for `BadType` to implement `IntoJsResult`
Expand Down
14 changes: 14 additions & 0 deletions crates/macro/ui-tests/import-keyword.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,17 @@ error: enum cannot use the JS keyword `switch` as its name
|
63 | pub enum switch {
| ^^^^^^

warning: type `class` should have an upper camel case name
--> ui-tests/import-keyword.rs:59:12
|
59 | pub struct class;
| ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Class`
|
= note: `#[warn(non_camel_case_types)]` on by default

warning: type `true` should have an upper camel case name
--> ui-tests/import-keyword.rs:61:12
|
61 | pub struct r#true; // forbid value-like keywords
| ^^^^^^ help: convert the identifier to upper camel case: `True`
48 changes: 24 additions & 24 deletions crates/macro/ui-tests/missing-catch.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, wasm_bindgen::JsVal
| ^^^ the trait `FromWasmAbi` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
|
= help: the following other types implement trait `FromWasmAbi`:
bool
char
isize
i8
i16
i32
i64
i128
*const T
*mut T
Box<[T]>
Clamped<T>
NonNull<T>
Option<*const T>
Option<*mut T>
Option<T>
and $N others
= note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand All @@ -26,14 +26,14 @@ error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, wasm_bindgen::JsVal
| ^^^^^^^^^^^^^^^ the trait `FromWasmAbi` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
|
= help: the following other types implement trait `FromWasmAbi`:
bool
char
isize
i8
i16
i32
i64
i128
*const T
*mut T
Box<[T]>
Clamped<T>
NonNull<T>
Option<*const T>
Option<*mut T>
Option<T>
and $N others
= note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand All @@ -44,12 +44,12 @@ error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, wasm_bindgen::JsVal
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromWasmAbi` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
|
= help: the following other types implement trait `FromWasmAbi`:
bool
char
isize
i8
i16
i32
i64
i128
*const T
*mut T
Box<[T]>
Clamped<T>
NonNull<T>
Option<*const T>
Option<*mut T>
Option<T>
and $N others
6 changes: 3 additions & 3 deletions crates/macro/ui-tests/pub-not-copy.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0277]: the trait bound `String: std::marker::Copy` is not satisfied
--> $DIR/pub-not-copy.rs:5:16
--> ui-tests/pub-not-copy.rs:5:16
|
3 | #[wasm_bindgen]
| --------------- in this procedural macro expansion
Expand All @@ -8,8 +8,8 @@ error[E0277]: the trait bound `String: std::marker::Copy` is not satisfied
| ^^^^^^ the trait `std::marker::Copy` is not implemented for `String`
|
note: required by a bound in `assert_copy`
--> $DIR/pub-not-copy.rs:3:1
--> ui-tests/pub-not-copy.rs:3:1
|
3 | #[wasm_bindgen]
| ^^^^^^^^^^^^^^^ required by this bound in `assert_copy`
= note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `wasm_bindgen::prelude::BindgenedStruct` (in Nightly builds, run with -Z macro-backtrace for more info)
2 changes: 1 addition & 1 deletion crates/macro/ui-tests/struct-fields.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ note: required by a bound in `__wbg_get_bar_a::assert_copy`
|
8 | #[wasm_bindgen]
| ^^^^^^^^^^^^^^^ required by this bound in `assert_copy`
= note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `wasm_bindgen::prelude::BindgenedStruct` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `Foo: Clone` is not satisfied
--> ui-tests/struct-fields.rs:12:12
Expand Down
48 changes: 24 additions & 24 deletions crates/macro/ui-tests/traits-not-implemented.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ error[E0277]: the trait bound `A: IntoWasmAbi` is not satisfied
| ^^^^^^^^^^^^^^^ the trait `IntoWasmAbi` is not implemented for `A`
|
= help: the following other types implement trait `IntoWasmAbi`:
bool
char
isize
i8
i16
i32
i64
i128
&'a [MaybeUninit<f32>]
&'a [MaybeUninit<f64>]
&'a [MaybeUninit<i16>]
&'a [MaybeUninit<i32>]
&'a [MaybeUninit<i64>]
&'a [MaybeUninit<i8>]
&'a [MaybeUninit<isize>]
&'a [MaybeUninit<u16>]
and $N others
= note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand All @@ -23,14 +23,14 @@ error[E0277]: the trait bound `A: IntoWasmAbi` is not satisfied
| ^ the trait `IntoWasmAbi` is not implemented for `A`
|
= help: the following other types implement trait `IntoWasmAbi`:
bool
char
isize
i8
i16
i32
i64
i128
&'a [MaybeUninit<f32>]
&'a [MaybeUninit<f64>]
&'a [MaybeUninit<i16>]
&'a [MaybeUninit<i32>]
&'a [MaybeUninit<i64>]
&'a [MaybeUninit<i8>]
&'a [MaybeUninit<isize>]
&'a [MaybeUninit<u16>]
and $N others

error[E0277]: the trait bound `A: IntoWasmAbi` is not satisfied
Expand All @@ -43,13 +43,13 @@ error[E0277]: the trait bound `A: IntoWasmAbi` is not satisfied
| ^^^ the trait `IntoWasmAbi` is not implemented for `A`
|
= help: the following other types implement trait `IntoWasmAbi`:
bool
char
isize
i8
i16
i32
i64
i128
&'a [MaybeUninit<f32>]
&'a [MaybeUninit<f64>]
&'a [MaybeUninit<i16>]
&'a [MaybeUninit<i32>]
&'a [MaybeUninit<i64>]
&'a [MaybeUninit<i8>]
&'a [MaybeUninit<isize>]
&'a [MaybeUninit<u16>]
and $N others
= note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)

0 comments on commit 0fd7da9

Please sign in to comment.