[yew-devel] [PATCH yew-widget-toolkit 1/3] pwt-macros: update tests to work for newer rustc

Dominik Csapak d.csapak at proxmox.com
Wed Dec 10 11:48:48 CET 2025


we now use rustc 1.90, the error messages and file/lines changed a bit

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 pwt-macros/tests/builder/invalid_type.stderr | 2 +-
 pwt-macros/tests/widget/wrong_crate.stderr   | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/pwt-macros/tests/builder/invalid_type.stderr b/pwt-macros/tests/builder/invalid_type.stderr
index d1f86fe..665f828 100644
--- a/pwt-macros/tests/builder/invalid_type.stderr
+++ b/pwt-macros/tests/builder/invalid_type.stderr
@@ -16,4 +16,4 @@ help: the return type of this call is `{float}` due to the type of the argument
 6 | |     wrong_type: i32,
   | |______________^
 note: method defined here
- --> /usr/src/rustc-1.85.0/library/core/src/option.rs:998:12
+ --> /usr/src/rustc-1.90.0/library/core/src/option.rs:1031:18
diff --git a/pwt-macros/tests/widget/wrong_crate.stderr b/pwt-macros/tests/widget/wrong_crate.stderr
index 115e038..8a9682f 100644
--- a/pwt-macros/tests/widget/wrong_crate.stderr
+++ b/pwt-macros/tests/widget/wrong_crate.stderr
@@ -1,5 +1,7 @@
-error[E0433]: failed to resolve: use of undeclared crate or module `wrong`
+error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wrong`
   --> tests/widget/wrong_crate.rs:34:14
    |
 34 | #[widget(pwt=wrong, comp=Foo, @input, @element)]
-   |              ^^^^^ use of undeclared crate or module `wrong`
+   |              ^^^^^ use of unresolved module or unlinked crate `wrong`
+   |
+   = help: if you wanted to use a crate named `wrong`, use `cargo add wrong` to add it to your `Cargo.toml`
-- 
2.47.3





More information about the yew-devel mailing list