@@ -82,9 +82,9 @@ macro_rules! make_mir_visitor {
8282
8383 fn visit_body(
8484 & mut self ,
85- body_cache : body_cache_type!( $( $mutability) ? ' _, ' tcx)
85+ body : body_cache_type!( $( $mutability) ? ' _, ' tcx)
8686 ) {
87- self . super_body( body_cache ) ;
87+ self . super_body( body ) ;
8888 }
8989
9090 fn visit_basic_block_data( & mut self ,
@@ -254,10 +254,10 @@ macro_rules! make_mir_visitor {
254254
255255 fn super_body(
256256 & mut self ,
257- $( $mutability) ? body_cache : body_cache_type!( $( $mutability) ? ' _, ' tcx)
257+ $( $mutability) ? body : body_cache_type!( $( $mutability) ? ' _, ' tcx)
258258 ) {
259- let span = body_cache . span;
260- if let Some ( yield_ty) = & $( $mutability) ? body_cache . yield_ty {
259+ let span = body . span;
260+ if let Some ( yield_ty) = & $( $mutability) ? body . yield_ty {
261261 self . visit_ty( yield_ty, TyContext :: YieldTy ( SourceInfo {
262262 span,
263263 scope: OUTERMOST_SOURCE_SCOPE ,
@@ -268,14 +268,14 @@ macro_rules! make_mir_visitor {
268268 // than a for-loop, to avoid calling `body::Body::invalidate` for
269269 // each basic block.
270270 macro_rules! basic_blocks {
271- ( mut ) => ( body_cache . basic_blocks_mut( ) . iter_enumerated_mut( ) ) ;
272- ( ) => ( body_cache . basic_blocks( ) . iter_enumerated( ) ) ;
271+ ( mut ) => ( body . basic_blocks_mut( ) . iter_enumerated_mut( ) ) ;
272+ ( ) => ( body . basic_blocks( ) . iter_enumerated( ) ) ;
273273 } ;
274274 for ( bb, data) in basic_blocks!( $( $mutability) ?) {
275275 self . visit_basic_block_data( bb, data) ;
276276 }
277277
278- let body: & $( $mutability) ? Body <' _> = & $( $mutability) ? body_cache ;
278+ let body: & $( $mutability) ? Body <' _> = & $( $mutability) ? body ;
279279 for scope in & $( $mutability) ? body. source_scopes {
280280 self . visit_source_scope_data( scope) ;
281281 }
@@ -808,10 +808,10 @@ macro_rules! make_mir_visitor {
808808
809809 fn visit_location(
810810 & mut self ,
811- body_cache : body_cache_type!( $( $mutability) ? ' _, ' tcx) ,
811+ body : body_cache_type!( $( $mutability) ? ' _, ' tcx) ,
812812 location: Location
813813 ) {
814- let basic_block = & $( $mutability) ? body_cache [ location. block] ;
814+ let basic_block = & $( $mutability) ? body [ location. block] ;
815815 if basic_block. statements. len( ) == location. statement_index {
816816 if let Some ( ref $( $mutability) ? terminator) = basic_block. terminator {
817817 self . visit_terminator( terminator, location)
0 commit comments