AST/HIR: Merge ObjectSum and PolyTraitRef

This commit is contained in:
Vadim Petrochenkov
2017-01-16 23:33:45 +03:00
parent 828404684b
commit 2efe865d22
22 changed files with 119 additions and 240 deletions

View File

@@ -679,19 +679,6 @@ fn fmt_type(t: &clean::Type, f: &mut fmt::Formatter, use_absolute: bool) -> fmt:
}
}
}
clean::PolyTraitRef(ref bounds) => {
for (i, bound) in bounds.iter().enumerate() {
if i != 0 {
write!(f, " + ")?;
}
if f.alternate() {
write!(f, "{:#}", *bound)?;
} else {
write!(f, "{}", *bound)?;
}
}
Ok(())
}
clean::ImplTrait(ref bounds) => {
write!(f, "impl ")?;
for (i, bound) in bounds.iter().enumerate() {