[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANiq72kj_+uG-63-kd4eAJ2M-3GONHBy2s+fSUaz+aA8Pct-RQ@mail.gmail.com>
Date: Thu, 29 Jan 2026 16:12:54 +0100
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Alexandre Courbot <acourbot@...dia.com>
Cc: Yury Norov <ynorov@...dia.com>, Joel Fernandes <joelagnelf@...dia.com>,
Miguel Ojeda <ojeda@...nel.org>, Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <lossin@...nel.org>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>,
Danilo Krummrich <dakr@...nel.org>, Yury Norov <yury.norov@...il.com>,
John Hubbard <jhubbard@...dia.com>, Alistair Popple <apopple@...dia.com>, Timur Tabi <ttabi@...dia.com>,
Edwin Peer <epeer@...dia.com>, Eliot Courtney <ecourtney@...dia.com>,
Daniel Almeida <daniel.almeida@...labora.com>, Dirk Behme <dirk.behme@...bosch.com>,
Steven Price <steven.price@....com>, rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/6] rust: add `bitfield!` macro
On Thu, Jan 29, 2026 at 2:41 PM Alexandre Courbot <acourbot@...dia.com> wrote:
>
> But not doable unfortunately, since macros cannot be declared as
> methods.
Indeed -- it may be doable in the future with postfix macros if they land:
https://github.com/rust-lang/rfcs/pull/2442
(The proposed ones do not do type-based dispatch).
Cheers,
Miguel
Powered by blists - more mailing lists