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