@@ -222,13 +222,6 @@ macro_rules! make_mir_visitor {
222
222
self . super_ty( ty) ;
223
223
}
224
224
225
- fn visit_user_type_projection(
226
- & mut self ,
227
- ty: & $( $mutability) ? UserTypeProjection ,
228
- ) {
229
- self . super_user_type_projection( ty) ;
230
- }
231
-
232
225
fn visit_user_type_annotation(
233
226
& mut self ,
234
227
index: UserTypeAnnotationIndex ,
@@ -804,17 +797,16 @@ macro_rules! make_mir_visitor {
804
797
& mut self ,
805
798
place: & $( $mutability) ? Place <' tcx>,
806
799
variance: $( & $mutability) ? ty:: Variance ,
807
- user_ty : & $( $mutability) ? UserTypeProjection ,
808
- location: Location )
809
- {
800
+ _user_ty : & $( $mutability) ? UserTypeProjection ,
801
+ location: Location ,
802
+ ) {
810
803
self . visit_place(
811
804
place,
812
805
PlaceContext :: NonUse (
813
806
NonUseContext :: AscribeUserTy ( $( * & $mutability * ) ? variance)
814
807
) ,
815
808
location
816
809
) ;
817
- self . visit_user_type_projection( user_ty) ;
818
810
}
819
811
820
812
fn super_coverage(
@@ -845,7 +837,7 @@ macro_rules! make_mir_visitor {
845
837
let LocalDecl {
846
838
mutability: _,
847
839
ty,
848
- user_ty,
840
+ user_ty: _ ,
849
841
source_info,
850
842
local_info: _,
851
843
} = local_decl;
@@ -856,11 +848,6 @@ macro_rules! make_mir_visitor {
856
848
local,
857
849
source_info: * source_info,
858
850
} ) ;
859
- if let Some ( user_ty) = user_ty {
860
- for ( user_ty, _) in & $( $mutability) ? user_ty. contents {
861
- self . visit_user_type_projection( user_ty) ;
862
- }
863
- }
864
851
}
865
852
866
853
fn super_local(
@@ -947,8 +934,6 @@ macro_rules! make_mir_visitor {
947
934
self . visit_source_scope( $( & $mutability) ? * scope) ;
948
935
}
949
936
950
- fn super_user_type_projection( & mut self , _ty: & $( $mutability) ? UserTypeProjection ) { }
951
-
952
937
fn super_user_type_annotation(
953
938
& mut self ,
954
939
_index: UserTypeAnnotationIndex ,
0 commit comments