Fully fledged Clause type
This commit is contained in:
parent
fca56a8d2c
commit
21226eefb2
11 changed files with 155 additions and 96 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue