We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4389a1c commit 5c25de6Copy full SHA for 5c25de6
compiler/rustc_privacy/src/lib.rs
@@ -1128,13 +1128,6 @@ impl<'tcx> Visitor<'tcx> for TypePrivacyVisitor<'tcx> {
1128
intravisit::walk_inf(self, inf);
1129
}
1130
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
1138
// Check types of expressions
1139
fn visit_expr(&mut self, expr: &'tcx hir::Expr<'tcx>) {
1140
if self.check_expr_pat_type(expr.hir_id, expr.span) {
0 commit comments