This is related to isssue #22442 and solves it partly.
This solves the links of associated types and constants, so that they
link to the trait page.
// Index this method for searching later on
if let Some(ref s) = item.name {
let (parent, is_method) = match item.inner {
+ clean::AssociatedTypeItem(..) |
+ clean::AssociatedConstItem(..) |
clean::TyMethodItem(..) |
clean::StructFieldItem(..) |
clean::VariantItem(..) => {
"macro",
"primitive",
"associatedtype",
- "constant"];
+ "constant",
+ "associatedconstant"];
$('.js-only').removeClass('js-only');