[PATCH v3 1/3] rust: clk: use the type-state pattern
Miguel Ojeda
miguel.ojeda.sandonis at gmail.com
Mon Jan 19 07:22:40 PST 2026
On Mon, Jan 19, 2026 at 3:20 PM Gary Guo <gary at garyguo.net> wrote:
>
> I guess it's time for me to work on a `#[sealed]` macro...
...and perhaps pinging upstream for the language feature... :) I added
https://github.com/rust-lang/rust/issues/105077 to our usual list of
wishes at https://github.com/Rust-for-Linux/linux/issues/354.
Do you think using the linked crate in the commit message would make
sense? It seems to be a couple pages of code, using `syn` 2.0, which
should be fine now.
Another option is a "good first issue" of medium difficulty if you wish.
> I wonder if it makes sense to add a general `ErrorWith` type for errors that
> carries error code + data.
Sounds reasonable...
Cheers,
Miguel
More information about the linux-riscv
mailing list