@@ -97,9 +97,9 @@ macro_rules! make_mir_visitor {
97
97
self . super_basic_block_data( block, data) ;
98
98
}
99
99
100
- fn visit_scope_data ( & mut self ,
101
- scope_data: & $( $mutability) * ScopeData ) {
102
- self . super_scope_data ( scope_data) ;
100
+ fn visit_visibility_scope_data ( & mut self ,
101
+ scope_data: & $( $mutability) * VisibilityScopeData ) {
102
+ self . super_visibility_scope_data ( scope_data) ;
103
103
}
104
104
105
105
fn visit_statement( & mut self ,
@@ -236,9 +236,9 @@ macro_rules! make_mir_visitor {
236
236
self . super_arg_decl( arg_decl) ;
237
237
}
238
238
239
- fn visit_scope_id ( & mut self ,
240
- scope_id : & $( $mutability) * ScopeId ) {
241
- self . super_scope_id ( scope_id ) ;
239
+ fn visit_visibility_scope ( & mut self ,
240
+ scope : & $( $mutability) * VisibilityScope ) {
241
+ self . super_visibility_scope ( scope ) ;
242
242
}
243
243
244
244
// The `super_xxx` methods comprise the default behavior and are
@@ -248,7 +248,7 @@ macro_rules! make_mir_visitor {
248
248
mir: & $( $mutability) * Mir <' tcx>) {
249
249
let Mir {
250
250
ref $( $mutability) * basic_blocks,
251
- ref $( $mutability) * scopes ,
251
+ ref $( $mutability) * visibility_scopes ,
252
252
promoted: _, // Visited by passes separately.
253
253
ref $( $mutability) * return_ty,
254
254
ref $( $mutability) * var_decls,
@@ -263,8 +263,8 @@ macro_rules! make_mir_visitor {
263
263
self . visit_basic_block_data( block, data) ;
264
264
}
265
265
266
- for scope in scopes {
267
- self . visit_scope_data ( scope) ;
266
+ for scope in visibility_scopes {
267
+ self . visit_visibility_scope_data ( scope) ;
268
268
}
269
269
270
270
self . visit_fn_output( return_ty) ;
@@ -302,16 +302,16 @@ macro_rules! make_mir_visitor {
302
302
}
303
303
}
304
304
305
- fn super_scope_data ( & mut self ,
306
- scope_data: & $( $mutability) * ScopeData ) {
307
- let ScopeData {
305
+ fn super_visibility_scope_data ( & mut self ,
306
+ scope_data: & $( $mutability) * VisibilityScopeData ) {
307
+ let VisibilityScopeData {
308
308
ref $( $mutability) * span,
309
309
ref $( $mutability) * parent_scope,
310
310
} = * scope_data;
311
311
312
312
self . visit_span( span) ;
313
313
if let Some ( ref $( $mutability) * parent_scope) = * parent_scope {
314
- self . visit_scope_id ( parent_scope) ;
314
+ self . visit_visibility_scope ( parent_scope) ;
315
315
}
316
316
}
317
317
@@ -325,7 +325,7 @@ macro_rules! make_mir_visitor {
325
325
} = * statement;
326
326
327
327
self . visit_span( span) ;
328
- self . visit_scope_id ( scope) ;
328
+ self . visit_visibility_scope ( scope) ;
329
329
match * kind {
330
330
StatementKind :: Assign ( ref $( $mutability) * lvalue,
331
331
ref $( $mutability) * rvalue) => {
@@ -352,7 +352,7 @@ macro_rules! make_mir_visitor {
352
352
} = * terminator;
353
353
354
354
self . visit_span( span) ;
355
- self . visit_scope_id ( scope) ;
355
+ self . visit_visibility_scope ( scope) ;
356
356
self . visit_terminator_kind( block, kind) ;
357
357
}
358
358
@@ -627,7 +627,7 @@ macro_rules! make_mir_visitor {
627
627
} = * var_decl;
628
628
629
629
self . visit_ty( ty) ;
630
- self . visit_scope_id ( scope) ;
630
+ self . visit_visibility_scope ( scope) ;
631
631
self . visit_span( span) ;
632
632
}
633
633
@@ -651,8 +651,8 @@ macro_rules! make_mir_visitor {
651
651
self . visit_ty( ty) ;
652
652
}
653
653
654
- fn super_scope_id ( & mut self ,
655
- _scope_id : & $( $mutability) * ScopeId ) {
654
+ fn super_visibility_scope ( & mut self ,
655
+ _scope : & $( $mutability) * VisibilityScope ) {
656
656
}
657
657
658
658
fn super_branch( & mut self ,
0 commit comments