We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74e35d2 commit 65622e3Copy full SHA for 65622e3
src/libsyntax/ext/expand.rs
@@ -36,10 +36,8 @@ macro_rules! ast_fragments {
36
(
37
$($Kind:ident($AstTy:ty) {
38
$kind_name:expr;
39
- // FIXME: HACK: this should be `$(one ...)?` and `$(many ...)?` but `?` macro
40
- // repetition was removed from 2015 edition in #51587 because of ambiguities.
41
- $(one fn $mut_visit_ast:ident; fn $visit_ast:ident;)*
42
- $(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;)?
43
fn $make_ast:ident;
44
})*
45
) => {
0 commit comments