Skip to content

Commit

Permalink
Remove now-useless method override
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Feb 7, 2024
1 parent 4389a1c commit 5c25de6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions compiler/rustc_privacy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1128,13 +1128,6 @@ impl<'tcx> Visitor<'tcx> for TypePrivacyVisitor<'tcx> {
intravisit::walk_inf(self, inf);
}

fn visit_trait_ref(&mut self, trait_ref: &'tcx hir::TraitRef<'tcx>) {
self.span = trait_ref.path.span;
// Privacy of traits in bodies is checked as a part of trait object types.

intravisit::walk_trait_ref(self, trait_ref);
}

// Check types of expressions
fn visit_expr(&mut self, expr: &'tcx hir::Expr<'tcx>) {
if self.check_expr_pat_type(expr.hir_id, expr.span) {
Expand Down

0 comments on commit 5c25de6

Please sign in to comment.