Skip to content

Commit 07fac09

Browse files
---
yaml --- r: 274832 b: refs/heads/stable c: 650c082 h: refs/heads/master
1 parent 731a597 commit 07fac09

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 8ac5f87db8c485e2d659f331f2bfa5d53a498d76
32+
refs/heads/stable: 650c082b1e56519939da80be79248b9e32335e95
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/librustc_privacy/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)