aboutsummaryrefslogtreecommitdiffstats
path: root/rust/macros/module.rs
diff options
context:
space:
mode:
authorJanne Grunau <[email protected]>2025-06-28 11:36:00 +0000
committerMiguel Ojeda <[email protected]>2025-06-29 16:30:45 +0000
commitfe49aae0fcb348b656bbde2eb1d1c75d8a1a5c3c (patch)
tree17da5f6e957c874ba48ac1f2f6d3a8b56934b4c8 /rust/macros/module.rs
parentLinux 6.16-rc3 (diff)
downloadkernel-fe49aae0fcb348b656bbde2eb1d1c75d8a1a5c3c.tar.gz
kernel-fe49aae0fcb348b656bbde2eb1d1c75d8a1a5c3c.zip
rust: init: Fix generics in *_init! macros
The match pattern for a optional trailing comma in the list of generics is erroneously repeated in the code block resulting in following error: | error: attempted to repeat an expression containing no syntax variables matched as repeating at this depth | --> rust/kernel/init.rs:301:73 | | | 301 | ::pin_init::try_pin_init!($(&$this in)? $t $(::<$($generics),* $(,)?>)? { | | ^^^ Remove "$(,)?" from all code blocks in the try_init! and try_pin_init! definitions. Cc: [email protected] Fixes: 578eb8b6db13 ("rust: pin-init: move the default error behavior of `try_[pin_]init`") Signed-off-by: Janne Grunau <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/macros/module.rs')
0 files changed, 0 insertions, 0 deletions