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 71a9eca
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
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`
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

0 comments on commit 71a9eca

Please sign in to comment.