Skip to content

Commit c9d062a

Browse files
committed
fix difference from kernel version
1 parent 32f0af1 commit c9d062a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/macros.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,6 +1454,20 @@ macro_rules! __init_internal {
14541454
);
14551455
}
14561456
};
1457+
(make_initializer:
1458+
@slot($slot:ident),
1459+
@type_name($t:path),
1460+
@munch_fields(_: { $($code:tt)* }, $($rest:tt)*),
1461+
@acc($($acc:tt)*),
1462+
) => {
1463+
// code blocks are ignored for the initializer check
1464+
$crate::__init_internal!(make_initializer:
1465+
@slot($slot),
1466+
@type_name($t),
1467+
@munch_fields($($rest)*),
1468+
@acc($($acc)*),
1469+
);
1470+
};
14571471
(make_initializer:
14581472
@slot($slot:ident),
14591473
@type_name($t:path),
@@ -1508,20 +1522,6 @@ macro_rules! __init_internal {
15081522
);
15091523
}
15101524
};
1511-
(make_initializer:
1512-
@slot($slot:ident),
1513-
@type_name($t:path),
1514-
@munch_fields(_: { $($code:tt)* }, $($rest:tt)*),
1515-
@acc($($acc:tt)*),
1516-
) => {
1517-
// code blocks are ignored for the initializer check
1518-
$crate::__init_internal!(make_initializer:
1519-
@slot($slot),
1520-
@type_name($t),
1521-
@munch_fields($($rest)*),
1522-
@acc($($acc)*),
1523-
);
1524-
};
15251525
(make_initializer:
15261526
@slot($slot:ident),
15271527
@type_name($t:path),

0 commit comments

Comments
 (0)