@@ -147,7 +147,7 @@ macro_rules! make_mir_visitor {
147147 fn visit_ascribe_user_ty(
148148 & mut self ,
149149 place: & $( $mutability) ? Place <' tcx>,
150- variance: & $ ( $mutability) ? ty:: Variance ,
150+ variance: $ ( & $mutability) ? ty:: Variance ,
151151 user_ty: & $( $mutability) ? UserTypeProjection ,
152152 location: Location ,
153153 ) {
@@ -164,7 +164,7 @@ macro_rules! make_mir_visitor {
164164
165165 fn visit_retag(
166166 & mut self ,
167- kind: & $ ( $mutability) ? RetagKind ,
167+ kind: $ ( & $mutability) ? RetagKind ,
168168 place: & $( $mutability) ? Place <' tcx>,
169169 location: Location ,
170170 ) {
@@ -425,7 +425,7 @@ macro_rules! make_mir_visitor {
425425 self . visit_source_info( source_info) ;
426426 match kind {
427427 StatementKind :: Assign (
428- box( ref $ ( $mutability ) ? place, ref $ ( $mutability ) ? rvalue)
428+ box ( place, rvalue)
429429 ) => {
430430 self . visit_assign( place, rvalue, location) ;
431431 }
@@ -465,13 +465,13 @@ macro_rules! make_mir_visitor {
465465 ) ;
466466 }
467467 StatementKind :: Retag ( kind, place) => {
468- self . visit_retag( kind, place, location) ;
468+ self . visit_retag( $ ( & $mutability ) ? * kind, place, location) ;
469469 }
470470 StatementKind :: AscribeUserType (
471- box( ref $ ( $mutability ) ? place, ref $ ( $mutability ) ? user_ty) ,
471+ box ( place, user_ty) ,
472472 variance
473473 ) => {
474- self . visit_ascribe_user_ty( place, variance, user_ty, location) ;
474+ self . visit_ascribe_user_ty( place, $ ( & $mutability ) ? * variance, user_ty, location) ;
475475 }
476476 StatementKind :: Coverage ( coverage) => {
477477 self . visit_coverage(
@@ -480,9 +480,9 @@ macro_rules! make_mir_visitor {
480480 )
481481 }
482482 StatementKind :: CopyNonOverlapping ( box crate :: mir:: CopyNonOverlapping {
483- ref $ ( $mutability ) ? src,
484- ref $ ( $mutability ) ? dst,
485- ref $ ( $mutability ) ? count,
483+ src,
484+ dst,
485+ count,
486486 } ) => {
487487 self . visit_operand( src, location) ;
488488 self . visit_operand( dst, location) ;
@@ -517,8 +517,7 @@ macro_rules! make_mir_visitor {
517517 TerminatorKind :: GeneratorDrop |
518518 TerminatorKind :: Unreachable |
519519 TerminatorKind :: FalseEdge { .. } |
520- TerminatorKind :: FalseUnwind { .. } => {
521- }
520+ TerminatorKind :: FalseUnwind { .. } => { }
522521
523522 TerminatorKind :: Return => {
524523 // `return` logically moves from the return place `_0`. Note that the place
@@ -830,7 +829,7 @@ macro_rules! make_mir_visitor {
830829
831830 fn super_ascribe_user_ty( & mut self ,
832831 place: & $( $mutability) ? Place <' tcx>,
833- _variance: & $ ( $mutability) ? ty:: Variance ,
832+ _variance: $ ( & $mutability) ? ty:: Variance ,
834833 user_ty: & $( $mutability) ? UserTypeProjection ,
835834 location: Location ) {
836835 self . visit_place(
@@ -847,7 +846,7 @@ macro_rules! make_mir_visitor {
847846 }
848847
849848 fn super_retag( & mut self ,
850- _kind: & $ ( $mutability) ? RetagKind ,
849+ _kind: $ ( & $mutability) ? RetagKind ,
851850 place: & $( $mutability) ? Place <' tcx>,
852851 location: Location ) {
853852 self . visit_place(
0 commit comments