Skip to content

Commit 8f9c4b3

Browse files
Update to new rustdoc internal API
1 parent 238944c commit 8f9c4b3

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

src/librustdoc/html/render/sidebar.rs

+13-16
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,11 @@ fn sidebar_assoc_items<'a>(
419419
"associatedconstant",
420420
assoc_consts,
421421
),
422+
LinkBlock::new(
423+
Link::new("implementations", "Associated Types"),
424+
"associatedtype",
425+
assoc_types,
426+
),
422427
LinkBlock::new(Link::new("implementations", "Methods"), "method", methods),
423428
];
424429

@@ -436,24 +441,16 @@ fn sidebar_assoc_items<'a>(
436441
let (blanket_impl, concrete): (Vec<&Impl>, Vec<&Impl>) =
437442
concrete.into_iter().partition::<Vec<_>, _>(|i| i.inner_impl().kind.is_blanket());
438443

439-
sidebar_render_assoc_items(cx, &mut id_map, concrete, synthetic, blanket_impl, &mut blocks);
444+
sidebar_render_assoc_items(
445+
cx,
446+
&mut id_map,
447+
concrete,
448+
synthetic,
449+
blanket_impl,
450+
&mut blocks,
451+
);
440452
}
441453

442-
blocks.extend([
443-
LinkBlock::new(
444-
Link::new("implementations", "Associated Constants"),
445-
"associatedconstant",
446-
assoc_consts,
447-
),
448-
LinkBlock::new(
449-
Link::new("implementations", "Associated Types"),
450-
"associatedtype",
451-
assoc_types,
452-
),
453-
LinkBlock::new(Link::new("implementations", "Methods"), "method", methods),
454-
]);
455-
blocks.append(&mut deref_methods);
456-
blocks.extend([concrete, synthetic, blanket]);
457454
links.append(&mut blocks);
458455
}
459456
}

0 commit comments

Comments
 (0)