Re: [PATCH] rust: device: make lifetime on `Core` and `CoreInternal` invariant
"Danilo Krummrich" <[email protected]> Mon, 13 Jul 2026 22:55:14 +0200
| Newsgroups | dev.linux.lists.nova-gpu,dev.linux.lists.driver-core,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
On Mon Jul 13, 2026 at 10:23 PM CEST, Gary Guo wrote: > Actually, a more proper fix is to make `Device` invariant over their > context. It would require touching all `Device`, though. > > Danilo, let me know if you'd prefer that approach instead. The bigger change is not a concern, but requiring every bus device implementor to consider this is a bit of a concern. If we can enforce it in the driver core code I'd prefer that.