cleanup macro after 2018 transition

We can now use `?`
This commit is contained in:
Aleksey Kladov 2019-02-20 10:10:11 +03:00
parent 74e35d2700
commit 65622e319e

View File

@ -36,10 +36,8 @@ macro_rules! ast_fragments {
( (
$($Kind:ident($AstTy:ty) { $($Kind:ident($AstTy:ty) {
$kind_name:expr; $kind_name:expr;
// FIXME: HACK: this should be `$(one ...)?` and `$(many ...)?` but `?` macro $(one fn $mut_visit_ast:ident; fn $visit_ast:ident;)?
// repetition was removed from 2015 edition in #51587 because of ambiguities. $(many fn $flat_map_ast_elt:ident; fn $visit_ast_elt:ident;)?
$(one fn $mut_visit_ast:ident; fn $visit_ast:ident;)*
$(many fn $flat_map_ast_elt:ident; fn $visit_ast_elt:ident;)*
fn $make_ast:ident; fn $make_ast:ident;
})* })*
) => { ) => {