Fully fledged Clause type
This commit is contained in:
@@ -1271,8 +1271,8 @@ impl<'tcx> Visitor<'tcx> for TypePrivacyVisitor<'tcx> {
|
||||
self.tcx.types.never,
|
||||
);
|
||||
|
||||
for (pred, _) in bounds.predicates() {
|
||||
match pred.skip_binder() {
|
||||
for (clause, _) in bounds.clauses() {
|
||||
match clause.kind().skip_binder() {
|
||||
ty::ClauseKind::Trait(trait_predicate) => {
|
||||
if self.visit_trait(trait_predicate.trait_ref).is_break() {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user