@@ -855,15 +855,15 @@ impl<'a, 'tcx, 'v> Visitor<'v> for PrivacyVisitor<'a, 'tcx> {
855855 fn visit_expr ( & mut self , expr : & hir:: Expr ) {
856856 match expr. node {
857857 hir:: ExprField ( ref base, name) => {
858- if let ty:: TyStruct ( def, _) = self . tcx . expr_ty_adjusted ( & * * base) . sty {
858+ if let ty:: TyStruct ( def, _) = self . tcx . expr_ty_adjusted ( & base) . sty {
859859 self . check_field ( expr. span ,
860860 def,
861861 def. struct_variant ( ) ,
862862 NamedField ( name. node ) ) ;
863863 }
864864 }
865865 hir:: ExprTupField ( ref base, idx) => {
866- if let ty:: TyStruct ( def, _) = self . tcx . expr_ty_adjusted ( & * * base) . sty {
866+ if let ty:: TyStruct ( def, _) = self . tcx . expr_ty_adjusted ( & base) . sty {
867867 self . check_field ( expr. span ,
868868 def,
869869 def. struct_variant ( ) ,
@@ -1238,7 +1238,7 @@ impl<'a, 'tcx, 'v> Visitor<'v> for ObsoleteVisiblePrivateTypesVisitor<'a, 'tcx>
12381238 at_outer_type : true ,
12391239 outer_type_is_public_path : false ,
12401240 } ;
1241- visitor. visit_ty ( & * * self_) ;
1241+ visitor. visit_ty ( & self_) ;
12421242 self_contains_private = visitor. contains_private ;
12431243 self_is_public_path = visitor. outer_type_is_public_path ;
12441244 }
@@ -1395,7 +1395,7 @@ impl<'a, 'tcx, 'v> Visitor<'v> for ObsoleteVisiblePrivateTypesVisitor<'a, 'tcx>
13951395 }
13961396 & hir:: WherePredicate :: RegionPredicate ( _) => { }
13971397 & hir:: WherePredicate :: EqPredicate ( ref eq_pred) => {
1398- self . visit_ty ( & * eq_pred. ty ) ;
1398+ self . visit_ty ( & eq_pred. ty ) ;
13991399 }
14001400 }
14011401 }
0 commit comments