Re: [PATCH 3/6] rust: add `bitfield!` macro

From: Miguel Ojeda

Date: Tue Jan 20 2026 - 08:08:36 EST


On Tue, Jan 20, 2026 at 1:47 PM Dirk Behme <dirk.behme@xxxxxxxxxxxx> wrote:
>
> And I think we need the same for the doctests where it fails as well then:

Yeah, since it is a macro meant for other crates, if we want to use
the feature, then we should have it in the set of Rust allowed
features for all kernel code.

But I see Alexandre has already replied and IIUC he plans to provide
it explicitly instead?

I wonder if we could just use it instead. Hmm... I see there was a PR
1.86 that significantly reworked the implementation, and Debian has
1.85 only, so perhaps it is a good idea to conservatively avoid the
feature, even if we may not hit any differences in practice.

Cheers,
Miguel