Skip to content

Commit 5c25de6

Browse files
committed
Remove now-useless method override
1 parent 4389a1c commit 5c25de6

File tree

1 file changed

+0
-7
lines changed
  • compiler/rustc_privacy/src

1 file changed

+0
-7
lines changed

compiler/rustc_privacy/src/lib.rs

-7
Original file line numberDiff line numberDiff line change
@@ -1128,13 +1128,6 @@ impl<'tcx> Visitor<'tcx> for TypePrivacyVisitor<'tcx> {
11281128
intravisit::walk_inf(self, inf);
11291129
}
11301130

1131-
fn visit_trait_ref(&mut self, trait_ref: &'tcx hir::TraitRef<'tcx>) {
1132-
self.span = trait_ref.path.span;
1133-
// Privacy of traits in bodies is checked as a part of trait object types.
1134-
1135-
intravisit::walk_trait_ref(self, trait_ref);
1136-
}
1137-
11381131
// Check types of expressions
11391132
fn visit_expr(&mut self, expr: &'tcx hir::Expr<'tcx>) {
11401133
if self.check_expr_pat_type(expr.hir_id, expr.span) {

0 commit comments

Comments
 (0)