From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id B45AF1FF0B3 for ; Wed, 09 Sep 2026 10:52:24 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 81B0521538; Wed, 09 Sep 2026 10:52:24 +0200 (CEST) From: Dominik Csapak To: yew-devel@lists.proxmox.com Subject: [PATCH yew-widget-toolkit] pwt-macros: adapt tests to newer rust version Date: Wed, 9 Sep 2026 10:51:20 +0200 Message-ID: <20260909085220.3370808-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.496 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: DJBVFR7HNQKGYILSTB2FRLIHC2MARCDS X-Message-ID-Hash: DJBVFR7HNQKGYILSTB2FRLIHC2MARCDS X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Yew framework devel list at Proxmox List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: we now have rust 1.94 packaged, so the error did change slightly. new rust version has different output Signed-off-by: Dominik Csapak --- 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