Auto merge of #98542 - jackh726:coinductive-wf, r=oli-obk

Make empty bounds lower to `WellFormed` and make `WellFormed` coinductive

r? rust-lang/types
This commit is contained in:
bors 2022-06-29 03:22:47 +00:00
commit 116edb6800
8 changed files with 130 additions and 26 deletions

View file

@ -154,6 +154,7 @@ where
}
ControlFlow::CONTINUE
}
ty::PredicateKind::WellFormed(arg) => arg.visit_with(self),
_ => bug!("unexpected predicate: {:?}", predicate),
}
}