Skip to content

Commit

Permalink
Add FIXME asking for removal of some P!s
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcabrajac committed Oct 15, 2024
1 parent fdc62e4 commit 87e6380
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_ast/src/visitors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,13 @@ macro_rules! make_ast_visitor {
make_visit!{WhereClause; visit_where_clause, walk_where_clause}
make_visit!{WherePredicate; visit_where_predicate, walk_where_predicate}

// FIXME: Remove these P!s
make_visit!{P!(Expr); visit_expr, walk_expr}
make_visit!{P!(Pat); visit_pat, walk_pat}
make_visit!{P!(Ty); visit_ty, walk_ty}

// Item variants
// FIXME: Remove these P!s
make_visit!{P!(Item); visit_item, walk_item, flat_map_item, walk_flat_map_item}
make_visit!{P!(AssocItem), ctxt: AssocCtxt; visit_assoc_item, walk_assoc_item, flat_map_assoc_item, walk_flat_map_assoc_item}
make_visit!{P!(ForeignItem); visit_foreign_item, walk_item, flat_map_foreign_item, walk_flat_map_foreign_item}
Expand Down

0 comments on commit 87e6380

Please sign in to comment.