Re: [PATCH] rust: irq: add `'static` bounds to irq callbacks
From: Danilo Krummrich
Date: Sat Feb 14 2026 - 05:23:57 EST
On Sat Feb 14, 2026 at 10:27 AM CET, Benno Lossin wrote:
> These callback functions take a generic `T` that is used in the body as
> the generic argument in `Registration` and `ThreadedRegistration`. Those
> types require `T: 'static`, but due to a compiler bug this requirement
> isn't propagated to the function. Thus add the bound. This was caught in
> the upstream Rust CI [1].
>
> Signed-off-by: Benno Lossin <lossin@xxxxxxxxxx>
> Link: https://github.com/rust-lang/rust/pull/149389 [1]
IIUC, the current code will not compile with a fixed compiler, right?
If this is correct, this needs to be backported; I can add the Fixes: tag and
Cc: stable when I apply the patch.
- Danilo