From 71a9ecac6c0be7941bb22c5fbebbb0d3534a1ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Florkiewicz?= Date: Wed, 11 Dec 2024 10:14:31 +0100 Subject: [PATCH] Update ui-tests expected results. --- crates/macro/ui-tests/import-keyword.stderr | 14 ++++++++++++++ crates/macro/ui-tests/pub-not-copy.stderr | 6 +++--- crates/macro/ui-tests/struct-fields.stderr | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) 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/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