From 9859934c97eb90c295c9872c4c9b5fe0feaa6dae Mon Sep 17 00:00:00 2001 From: RayMarch Date: Fri, 17 Oct 2025 19:29:53 +0200 Subject: [PATCH 1/2] allowing `mismatched_lifetime_syntaxes` --- examples/shame_wgpu/src/lib.rs | 1 + shame/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/shame_wgpu/src/lib.rs b/examples/shame_wgpu/src/lib.rs index 3ec8855..a42597d 100644 --- a/examples/shame_wgpu/src/lib.rs +++ b/examples/shame_wgpu/src/lib.rs @@ -1,6 +1,7 @@ //! shame wgpu integration //! //! bind-group and pipeline glue code +#![allow(mismatched_lifetime_syntaxes)] pub use shame::*; pub mod bind_group; pub mod binding; diff --git a/shame/src/lib.rs b/shame/src/lib.rs index 9d316df..702c47f 100644 --- a/shame/src/lib.rs +++ b/shame/src/lib.rs @@ -3,7 +3,7 @@ //#![warn(clippy::cast_lossless)] #![deny(missing_docs)] #![allow(clippy::match_like_matches_macro, clippy::diverging_sub_expression)] -#![allow(unused)] +#![allow(unused, mismatched_lifetime_syntaxes)] mod backend; mod common; From bcc62194a727900052807be186d1319dbdd56926 Mon Sep 17 00:00:00 2001 From: RayMarch Date: Fri, 17 Oct 2025 19:31:49 +0200 Subject: [PATCH 2/2] rust 1.90.0 fix --- shame_derive/src/derive_layout.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shame_derive/src/derive_layout.rs b/shame_derive/src/derive_layout.rs index c9fe351..62ef661 100644 --- a/shame_derive/src/derive_layout.rs +++ b/shame_derive/src/derive_layout.rs @@ -266,7 +266,7 @@ pub fn impl_for_struct( Ok(t) => t, Err(actual_len) => { let any = push_wrong_amount_of_args_error(actual_len, EXPECTED_LEN, #re::call_info!()); - [any; EXPECTED_LEN] + std::array::from_fn(|_| any) } }; @@ -533,7 +533,9 @@ pub fn impl_for_struct( Ok(t) => t, Err(actual_len) => { let any = push_wrong_amount_of_args_error(actual_len, EXPECTED_LEN, #re::call_info!()); - [any; EXPECTED_LEN] + // rust 1.90.0 breaking change workaround. + // `[any; EXPECTED_LEN]` no longer compiles + std::array::from_fn(|_| any) } }; Self {