Skip to content

Commit 343fd19

Browse files
authored
Rollup merge of #58589 - matklad:remove-hack, r=petrochenkov
cleanup macro after 2018 transition We can now use `?`
2 parents 858e646 + 65622e3 commit 343fd19

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/libsyntax/ext/expand.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ macro_rules! ast_fragments {
3737
(
3838
$($Kind:ident($AstTy:ty) {
3939
$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;)*
40+
$(one fn $mut_visit_ast:ident; fn $visit_ast:ident;)?
41+
$(many fn $flat_map_ast_elt:ident; fn $visit_ast_elt:ident;)?
4442
fn $make_ast:ident;
4543
})*
4644
) => {

0 commit comments

Comments
 (0)