Skip to content

Commit 612081a

Browse files
print associated types in traits "implementors" section
1 parent 5cc1baa commit 612081a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: src/librustdoc/html/render.rs

+7
Original file line numberDiff line numberDiff line change
@@ -2235,6 +2235,13 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
22352235
_ => false,
22362236
};
22372237
fmt_impl_for_trait_page(&implementor.impl_, w, use_absolute)?;
2238+
for it in &implementor.impl_.items {
2239+
if let clean::TypedefItem(ref tydef, _) = it.inner {
2240+
write!(w, "<span class=\"where fmt-newline\"> ")?;
2241+
assoc_type(w, it, &vec![], Some(&tydef.type_), AssocItemLink::Anchor(None))?;
2242+
write!(w, ";</span>")?;
2243+
}
2244+
}
22382245
writeln!(w, "</code></li>")?;
22392246
}
22402247
}

0 commit comments

Comments
 (0)