1
Fork 0

Uplift NormalizesTo, CoercePredicate, and SubtypePredicate

This commit is contained in:
Michael Goulet 2024-05-11 13:51:25 -04:00
parent 0d4dca2b82
commit 0a8f33830c
10 changed files with 128 additions and 87 deletions

View file

@ -152,12 +152,6 @@ impl fmt::Debug for ty::ParamConst {
}
}
impl<'tcx> fmt::Debug for ty::NormalizesTo<'tcx> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "NormalizesTo({:?}, {:?})", self.alias, self.term)
}
}
impl<'tcx> fmt::Debug for ty::Predicate<'tcx> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{:?}", self.kind())