ty::Predicate::ObjectSafe(data) =>
ty::Predicate::ObjectSafe(data),
+
+ ty::Predicate::ClosureKind(closure_def_id, kind) =>
+ ty::Predicate::ClosureKind(closure_def_id, kind)
};
self.set.insert(normalized_pred)
}
ty::Predicate::Projection(..) => {
// Nothing to elaborate in a projection predicate.
}
+ ty::Predicate::ClosureKind(..) => {
+ // Nothing to elaborate when waiting for a closure's kind to be inferred.
+ }
ty::Predicate::RegionOutlives(..) |
ty::Predicate::TypeOutlives(..) => {
// Currently, we do not "elaborate" predicates like