@@ -97,9 +97,9 @@ macro_rules! make_mir_visitor {
9797 self . super_basic_block_data( block, data) ;
9898 }
9999
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) ;
103103 }
104104
105105 fn visit_statement( & mut self ,
@@ -236,9 +236,9 @@ macro_rules! make_mir_visitor {
236236 self . super_arg_decl( arg_decl) ;
237237 }
238238
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 ) ;
242242 }
243243
244244 // The `super_xxx` methods comprise the default behavior and are
@@ -248,7 +248,7 @@ macro_rules! make_mir_visitor {
248248 mir: & $( $mutability) * Mir <' tcx>) {
249249 let Mir {
250250 ref $( $mutability) * basic_blocks,
251- ref $( $mutability) * scopes ,
251+ ref $( $mutability) * visibility_scopes ,
252252 promoted: _, // Visited by passes separately.
253253 ref $( $mutability) * return_ty,
254254 ref $( $mutability) * var_decls,
@@ -263,8 +263,8 @@ macro_rules! make_mir_visitor {
263263 self . visit_basic_block_data( block, data) ;
264264 }
265265
266- for scope in scopes {
267- self . visit_scope_data ( scope) ;
266+ for scope in visibility_scopes {
267+ self . visit_visibility_scope_data ( scope) ;
268268 }
269269
270270 self . visit_fn_output( return_ty) ;
@@ -302,16 +302,16 @@ macro_rules! make_mir_visitor {
302302 }
303303 }
304304
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 {
308308 ref $( $mutability) * span,
309309 ref $( $mutability) * parent_scope,
310310 } = * scope_data;
311311
312312 self . visit_span( span) ;
313313 if let Some ( ref $( $mutability) * parent_scope) = * parent_scope {
314- self . visit_scope_id ( parent_scope) ;
314+ self . visit_visibility_scope ( parent_scope) ;
315315 }
316316 }
317317
@@ -325,7 +325,7 @@ macro_rules! make_mir_visitor {
325325 } = * statement;
326326
327327 self . visit_span( span) ;
328- self . visit_scope_id ( scope) ;
328+ self . visit_visibility_scope ( scope) ;
329329 match * kind {
330330 StatementKind :: Assign ( ref $( $mutability) * lvalue,
331331 ref $( $mutability) * rvalue) => {
@@ -352,7 +352,7 @@ macro_rules! make_mir_visitor {
352352 } = * terminator;
353353
354354 self . visit_span( span) ;
355- self . visit_scope_id ( scope) ;
355+ self . visit_visibility_scope ( scope) ;
356356 self . visit_terminator_kind( block, kind) ;
357357 }
358358
@@ -627,7 +627,7 @@ macro_rules! make_mir_visitor {
627627 } = * var_decl;
628628
629629 self . visit_ty( ty) ;
630- self . visit_scope_id ( scope) ;
630+ self . visit_visibility_scope ( scope) ;
631631 self . visit_span( span) ;
632632 }
633633
@@ -651,8 +651,8 @@ macro_rules! make_mir_visitor {
651651 self . visit_ty( ty) ;
652652 }
653653
654- fn super_scope_id ( & mut self ,
655- _scope_id : & $( $mutability) * ScopeId ) {
654+ fn super_visibility_scope ( & mut self ,
655+ _scope : & $( $mutability) * VisibilityScope ) {
656656 }
657657
658658 fn super_branch( & mut self ,
0 commit comments