@@ -147,7 +147,7 @@ macro_rules! make_mir_visitor {
147
147
fn visit_ascribe_user_ty(
148
148
& mut self ,
149
149
place: & $( $mutability) ? Place <' tcx>,
150
- variance: & $ ( $mutability) ? ty:: Variance ,
150
+ variance: $ ( & $mutability) ? ty:: Variance ,
151
151
user_ty: & $( $mutability) ? UserTypeProjection ,
152
152
location: Location ,
153
153
) {
@@ -164,7 +164,7 @@ macro_rules! make_mir_visitor {
164
164
165
165
fn visit_retag(
166
166
& mut self ,
167
- kind: & $ ( $mutability) ? RetagKind ,
167
+ kind: $ ( & $mutability) ? RetagKind ,
168
168
place: & $( $mutability) ? Place <' tcx>,
169
169
location: Location ,
170
170
) {
@@ -425,7 +425,7 @@ macro_rules! make_mir_visitor {
425
425
self . visit_source_info( source_info) ;
426
426
match kind {
427
427
StatementKind :: Assign (
428
- box( ref $ ( $mutability ) ? place, ref $ ( $mutability ) ? rvalue)
428
+ box ( place, rvalue)
429
429
) => {
430
430
self . visit_assign( place, rvalue, location) ;
431
431
}
@@ -465,13 +465,13 @@ macro_rules! make_mir_visitor {
465
465
) ;
466
466
}
467
467
StatementKind :: Retag ( kind, place) => {
468
- self . visit_retag( kind, place, location) ;
468
+ self . visit_retag( $ ( & $mutability ) ? * kind, place, location) ;
469
469
}
470
470
StatementKind :: AscribeUserType (
471
- box( ref $ ( $mutability ) ? place, ref $ ( $mutability ) ? user_ty) ,
471
+ box ( place, user_ty) ,
472
472
variance
473
473
) => {
474
- self . visit_ascribe_user_ty( place, variance, user_ty, location) ;
474
+ self . visit_ascribe_user_ty( place, $ ( & $mutability ) ? * variance, user_ty, location) ;
475
475
}
476
476
StatementKind :: Coverage ( coverage) => {
477
477
self . visit_coverage(
@@ -480,9 +480,9 @@ macro_rules! make_mir_visitor {
480
480
)
481
481
}
482
482
StatementKind :: CopyNonOverlapping ( box crate :: mir:: CopyNonOverlapping {
483
- ref $ ( $mutability ) ? src,
484
- ref $ ( $mutability ) ? dst,
485
- ref $ ( $mutability ) ? count,
483
+ src,
484
+ dst,
485
+ count,
486
486
} ) => {
487
487
self . visit_operand( src, location) ;
488
488
self . visit_operand( dst, location) ;
@@ -517,8 +517,7 @@ macro_rules! make_mir_visitor {
517
517
TerminatorKind :: GeneratorDrop |
518
518
TerminatorKind :: Unreachable |
519
519
TerminatorKind :: FalseEdge { .. } |
520
- TerminatorKind :: FalseUnwind { .. } => {
521
- }
520
+ TerminatorKind :: FalseUnwind { .. } => { }
522
521
523
522
TerminatorKind :: Return => {
524
523
// `return` logically moves from the return place `_0`. Note that the place
@@ -830,7 +829,7 @@ macro_rules! make_mir_visitor {
830
829
831
830
fn super_ascribe_user_ty( & mut self ,
832
831
place: & $( $mutability) ? Place <' tcx>,
833
- _variance: & $ ( $mutability) ? ty:: Variance ,
832
+ _variance: $ ( & $mutability) ? ty:: Variance ,
834
833
user_ty: & $( $mutability) ? UserTypeProjection ,
835
834
location: Location ) {
836
835
self . visit_place(
@@ -847,7 +846,7 @@ macro_rules! make_mir_visitor {
847
846
}
848
847
849
848
fn super_retag( & mut self ,
850
- _kind: & $ ( $mutability) ? RetagKind ,
849
+ _kind: $ ( & $mutability) ? RetagKind ,
851
850
place: & $( $mutability) ? Place <' tcx>,
852
851
location: Location ) {
853
852
self . visit_place(
0 commit comments