Skip to content

Commit 53dba8d

Browse files
committed
Remove P<> from visit_block
1 parent 98b8d5b commit 53dba8d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/rustc_ast/src/mut_visit.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub trait MutVisitor: Sized {
136136
walk_closure_binder(self, b);
137137
}
138138

139-
fn visit_block(&mut self, b: &mut P<Block>) {
139+
fn visit_block(&mut self, b: &mut Block) {
140140
walk_block(self, b);
141141
}
142142

@@ -1071,8 +1071,8 @@ fn walk_mt<T: MutVisitor>(vis: &mut T, MutTy { ty, mutbl: _ }: &mut MutTy) {
10711071
vis.visit_ty(ty);
10721072
}
10731073

1074-
pub fn walk_block<T: MutVisitor>(vis: &mut T, block: &mut P<Block>) {
1075-
let Block { id, stmts, rules: _, span, tokens, could_be_bare_literal: _ } = block.deref_mut();
1074+
pub fn walk_block<T: MutVisitor>(vis: &mut T, block: &mut Block) {
1075+
let Block { id, stmts, rules: _, span, tokens, could_be_bare_literal: _ } = block;
10761076
vis.visit_id(id);
10771077
stmts.flat_map_in_place(|stmt| vis.flat_map_stmt(stmt));
10781078
visit_lazy_tts(vis, tokens);

compiler/rustc_expand/src/expand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2198,7 +2198,7 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> {
21982198
self.flat_map_node(AstNodeWrapper::new(node, OptExprTag))
21992199
}
22002200

2201-
fn visit_block(&mut self, node: &mut P<ast::Block>) {
2201+
fn visit_block(&mut self, node: &mut ast::Block) {
22022202
let orig_dir_ownership = mem::replace(
22032203
&mut self.cx.current_expansion.dir_ownership,
22042204
DirOwnership::UnownedViaBlock,

0 commit comments

Comments
 (0)