Needed for rustc 1.73.0 which is currently in staging-next.
The patch is authored by me. This time around the patch is a bit more involved/hacky. An attempt at an explanation:
rust-next already has a patch for 1.73.0, but rust-next does not contain the driver module of the kernel crate, because that is not yet upstreamed to mainline.
The const_impl unstable feature is being reworked, and I could not make it work, got several compiler panics on the way.
Because the affected RawDeviceId trait is currently only implemented for one single struct, we can just manually insert this DeviceId struct in all the places where RawDeviceId was used as a generic, circumventing the use of const_trait.
Needed for rustc 1.73.0 which is currently in staging-next.
The patch is authored by me. This time around the patch is a bit more involved/hacky. An attempt at an explanation: rust-next already has a patch for 1.73.0, but rust-next does not contain the driver module of the kernel crate, because that is not yet upstreamed to mainline. The const_impl unstable feature is being reworked, and I could not make it work, got several compiler panics on the way. Because the affected RawDeviceId trait is currently only implemented for one single struct, we can just manually insert this DeviceId struct in all the places where RawDeviceId was used as a generic, circumventing the use of const_trait.