* [PATCH yew-widget-toolkit] pwt-macros: adapt tests to newer rust version
@ 2026-09-09 8:51 Dominik Csapak
0 siblings, 0 replies; only message in thread
From: Dominik Csapak @ 2026-09-09 8:51 UTC (permalink / raw)
To: yew-devel
we now have rust 1.94 packaged, so the error did change slightly.
new rust version has different output
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
maybe there is a better alternative than trybuild to test these?
At least the rust-src line will change on every rust version bump..
pwt-macros/tests/builder/invalid_type.stderr | 31 +++++++++++---------
pwt-macros/tests/widget/wrong_comp.stderr | 2 +-
2 files changed, 18 insertions(+), 15 deletions(-)
diff --git a/pwt-macros/tests/builder/invalid_type.stderr b/pwt-macros/tests/builder/invalid_type.stderr
index 665f828..37bfd94 100644
--- a/pwt-macros/tests/builder/invalid_type.stderr
+++ b/pwt-macros/tests/builder/invalid_type.stderr
@@ -1,19 +1,22 @@
error[E0308]: mismatched types
--> tests/builder/invalid_type.rs:5:27
|
-5 | #[builder(Into, into, 0.0)]
- | ------- ^^^ expected `i32`, found floating-point number
- | |
- | arguments to this method are incorrect
- |
+ 5 | #[builder(Into, into, 0.0)]
+ | ------- ^^^ expected `i32`, found floating-point number
+ | |
+ | arguments to this method are incorrect
+ |
help: the return type of this call is `{float}` due to the type of the argument passed
- --> tests/builder/invalid_type.rs:5:7
- |
-5 | #[builder(Into, into, 0.0)]
- | ^ --- this argument influences the return type of `unwrap_or`
- | _______|
- | |
-6 | | wrong_type: i32,
- | |______________^
+ --> tests/builder/invalid_type.rs:5:7
+ |
+ 5 | #[builder(Into, into, 0.0)]
+ | ^ --- this argument influences the return type of `unwrap_or`
+ | _______|
+ | |
+ 6 | | wrong_type: i32,
+ | |______________^
note: method defined here
- --> /usr/src/rustc-1.90.0/library/core/src/option.rs:1031:18
+ --> /usr/src/rustc-1.94.1/library/core/src/option.rs:1038:18
+ |
+1038 | pub const fn unwrap_or(self, default: T) -> T
+ | ^^^^^^^^^
diff --git a/pwt-macros/tests/widget/wrong_comp.stderr b/pwt-macros/tests/widget/wrong_comp.stderr
index c33f554..5ad771c 100644
--- a/pwt-macros/tests/widget/wrong_comp.stderr
+++ b/pwt-macros/tests/widget/wrong_comp.stderr
@@ -1,4 +1,4 @@
-error[E0412]: cannot find type `Wrong` in this scope
+error[E0425]: cannot find type `Wrong` in this scope
--> tests/widget/wrong_comp.rs:53:26
|
53 | #[widget(pwt=crate, comp=Wrong, @input, @element)]
--
2.47.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-09 8:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-09 8:51 [PATCH yew-widget-toolkit] pwt-macros: adapt tests to newer rust version Dominik Csapak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox