llow decl-module to have a where clause with trailing comma (#6431)

This commit is contained in:
Guillaume Thiolliere
2020-06-19 16:00:06 +02:00
committed by GitHub
parent 780f8e09d7
commit 6103e9854c
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -283,7 +283,7 @@ macro_rules! decl_module {
$trait_instance:ident: $trait_name:ident
$( <I>, I: $instantiable:path $( = $module_default_instance:path )? )?
>
for enum $call_type:ident where origin: $origin_type:ty $(, $where_ty:ty: $where_bound:path )* {
for enum $call_type:ident where origin: $origin_type:ty $(, $where_ty:ty: $where_bound:path )* $(,)? {
$( $t:tt )*
}
) => {
@@ -317,6 +317,7 @@ macro_rules! decl_module {
origin: $origin_type:ty,
system = $system:ident
$(, $where_ty:ty: $where_bound:path )*
$(,)?
{
$($t:tt)*
}