diff --git a/crates/macro/ui-tests/async-errors.stderr b/crates/macro/ui-tests/async-errors.stderr index a13c8fceac8..6de09518bfa 100644 --- a/crates/macro/ui-tests/async-errors.stderr +++ b/crates/macro/ui-tests/async-errors.stderr @@ -25,14 +25,14 @@ error[E0277]: the trait bound `wasm_bindgen::JsValue: From` is not sati | ^^^^^^^ the trait `From` is not implemented for `wasm_bindgen::JsValue`, which is required by `BadType: IntoJsResult` | = help: the following other types implement trait `From`: - > - > - > - > - > - > - > - > + `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` + `wasm_bindgen::JsValue` implements `From` + `wasm_bindgen::JsValue` implements `From` and $N others = note: required for `BadType` to implement `Into` = note: required for `BadType` to implement `IntoJsResult` diff --git a/crates/macro/ui-tests/import-keyword.stderr b/crates/macro/ui-tests/import-keyword.stderr index ecc9f087ded..b2c3d8e3fd3 100644 --- a/crates/macro/ui-tests/import-keyword.stderr +++ b/crates/macro/ui-tests/import-keyword.stderr @@ -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` diff --git a/crates/macro/ui-tests/missing-catch.stderr b/crates/macro/ui-tests/missing-catch.stderr index b420b787da7..2589ec2c7ea 100644 --- a/crates/macro/ui-tests/missing-catch.stderr +++ b/crates/macro/ui-tests/missing-catch.stderr @@ -8,14 +8,14 @@ error[E0277]: the trait bound `Result` | = help: the following other types implement trait `FromWasmAbi`: - bool - char - isize - i8 - i16 - i32 - i64 - i128 + *const T + *mut T + Box<[T]> + Clamped + NonNull + Option<*const T> + Option<*mut T> + Option and $N others = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -26,14 +26,14 @@ error[E0277]: the trait bound `Result` | = help: the following other types implement trait `FromWasmAbi`: - bool - char - isize - i8 - i16 - i32 - i64 - i128 + *const T + *mut T + Box<[T]> + Clamped + NonNull + Option<*const T> + Option<*mut T> + Option and $N others = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -44,12 +44,12 @@ error[E0277]: the trait bound `Result` | = help: the following other types implement trait `FromWasmAbi`: - bool - char - isize - i8 - i16 - i32 - i64 - i128 + *const T + *mut T + Box<[T]> + Clamped + NonNull + Option<*const T> + Option<*mut T> + Option and $N others diff --git a/crates/macro/ui-tests/pub-not-copy.stderr b/crates/macro/ui-tests/pub-not-copy.stderr index e8f1c2c820f..2e35ee0b25c 100644 --- a/crates/macro/ui-tests/pub-not-copy.stderr +++ b/crates/macro/ui-tests/pub-not-copy.stderr @@ -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 @@ -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) diff --git a/crates/macro/ui-tests/struct-fields.stderr b/crates/macro/ui-tests/struct-fields.stderr index f38391b27d8..c963044160e 100644 --- a/crates/macro/ui-tests/struct-fields.stderr +++ b/crates/macro/ui-tests/struct-fields.stderr @@ -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 diff --git a/crates/macro/ui-tests/traits-not-implemented.stderr b/crates/macro/ui-tests/traits-not-implemented.stderr index 2f7e9887747..3cd23554b00 100644 --- a/crates/macro/ui-tests/traits-not-implemented.stderr +++ b/crates/macro/ui-tests/traits-not-implemented.stderr @@ -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] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] and $N others = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -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] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] and $N others error[E0277]: the trait bound `A: IntoWasmAbi` is not satisfied @@ -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] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] + &'a [MaybeUninit] and $N others = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)