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

From: Miguel Ojeda

Date: Tue Jan 20 2026 - 16:02:40 EST


On Tue, Jan 20, 2026 at 2:20 PM Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
>
> We can avoid the feature altogether, but it is of course more convenient
> if we can infer these generic parameters when possible. But if you
> prefer we eschew that, no big deal. One can even argue the code is more
> readable that way.

As long as it builds (infers) properly with the minimum version, it
seems fine to me to use.

> I haven't found how to enable it for doctests anyway - maybe this is not
> currently doable?

"World-available" features are enabled for the entire kernel,
including doctests (this is what I meant in my reply to Dirk).

We list them in the `rust_allowed_features` line in `scripts/Makefile.build`.

Thanks!

Cheers,
Miguel