1
Fork 0

Add two new kinds of predicates, WellFormed and ObjectSafe.

This commit is contained in:
Niko Matsakis 2015-08-07 09:30:19 -04:00
parent 928955296e
commit b1963154a1
16 changed files with 149 additions and 12 deletions

View file

@ -818,7 +818,9 @@ impl<'a> Clean<WherePredicate> for ty::Predicate<'a> {
Predicate::Equate(ref pred) => pred.clean(cx),
Predicate::RegionOutlives(ref pred) => pred.clean(cx),
Predicate::TypeOutlives(ref pred) => pred.clean(cx),
Predicate::Projection(ref pred) => pred.clean(cx)
Predicate::Projection(ref pred) => pred.clean(cx),
Predicate::WellFormed(_) => panic!("not user writable"),
Predicate::ObjectSafe(_) => panic!("not user writable"),
}
}
}