1
Fork 0

rustdoc: render more cross-crate hrtbs properly

This commit is contained in:
León Orell Valerian Liehr 2022-10-04 14:08:25 +02:00
parent f1112099eb
commit 73c239e5eb
No known key found for this signature in database
GPG key ID: CD75E31CE2CFD7D9
10 changed files with 124 additions and 41 deletions

View file

@ -331,7 +331,8 @@ pub(crate) fn print_where_clause<'a, 'tcx: 'a>(
bounds_display.truncate(bounds_display.len() - " + ".len());
write!(f, "{}: {bounds_display}", lifetime.print())
}
clean::WherePredicate::EqPredicate { lhs, rhs } => {
// FIXME(fmease): Render bound params.
clean::WherePredicate::EqPredicate { lhs, rhs, bound_params: _ } => {
if f.alternate() {
write!(f, "{:#} == {:#}", lhs.print(cx), rhs.print(cx))
} else {