Re: [PATCH v9 3/5] rust: debugfs: Support `PinInit` backing for `File`s.
From: Miguel Ojeda
Date: Tue Aug 19 2025 - 10:50:33 EST
On Tue, Aug 19, 2025 at 4:33 PM Matthew Maurer <mmaurer@xxxxxxxxxx> wrote:
>
> The easy way to resolve this is to use `rustc` 1.82.0 or newer (you're
> only one revision behind!), but that's past the MSRV for the kernel at
> the moment of 1.79.0. I intend to send up a new patch today, so I
> suppose I'll need to put that behind a flag similar to
> `RUSTC_HAS_DERIVE_COERCE_POINTEE`.
The syntax changed after our minimum version IIRC -- does this case
require the precise syntax or can we use one of the workarounds?
> Did you add `#![feature(precise_capturing)]` to
> `samples/rust/rust_debugfs.rs` as well? It is its own crate, so it has
> its own set of features.
This would need to go into the `allowed_features` list, assuming it
works, but please check the above to see if the syntax is allowed
across the versions.
Thanks!
Cheers,
Miguel