Re: [PATCH] rust: soc: silence clippy warning with rustc >= 1.88

From: Alexandre Courbot

Date: Tue Jul 07 2026 - 10:36:15 EST


On Tue Jul 7, 2026 at 9:12 PM JST, Miguel Ojeda wrote:
> On Tue, Jul 7, 2026 at 1:43 PM Gary Guo <gary@xxxxxxxxxxx> wrote:
>>
>> We set `msrv = "1.85"` in our .clippy.toml, and my local testing with 1.88 and
>> 1.96.1 doesn't produce this warning.
>
> Yeah, I was trying to reproduce it locally too and didn't succeed yet.

Ok so this is nuts but it appears to only reproduce when
`CONFIG_CC_OPTIMIZE_FOR_SIZE=y` (and `CONFIG_SAMPLE_RUST_SOC=m` to build
`soc.rs`)