* [PATCH yew-widget-toolkit] pwt-macros: adapt tests to newer rust version
@ 2026-09-09 8:51 Dominik Csapak
2026-09-23 19:12 ` applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread
* applied: [PATCH yew-widget-toolkit] pwt-macros: adapt tests to newer rust version
2026-09-09 8:51 [PATCH yew-widget-toolkit] pwt-macros: adapt tests to newer rust version Dominik Csapak
@ 2026-09-23 19:12 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2026-09-23 19:12 UTC (permalink / raw)
To: yew-devel, Dominik Csapak
On Wed, 09 Sep 2026 10:51:20 +0200, Dominik Csapak wrote:
> we now have rust 1.94 packaged, so the error did change slightly.
>
> new rust version has different output
Applied, thanks!
[1/1] pwt-macros: adapt tests to newer rust version
commit: e8b39cd43ee270ee535bcf968d0fb434d4620141
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-23 19:12 UTC | newest]
Thread overview: 2+ messages (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
2026-09-23 19:12 ` applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox