Skip to content

Commit b91ceb5

Browse files
committed
Update rustdoc to support #[rustc_auto_trait]
1 parent 7f6e071 commit b91ceb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2804,7 +2804,7 @@ fn clean_maybe_renamed_item<'tcx>(
28042804
ItemKind::Fn(ref sig, generics, body_id) => {
28052805
clean_fn_or_proc_macro(item, sig, generics, body_id, &mut name, cx)
28062806
}
2807-
ItemKind::Trait(_, _, generics, bounds, item_ids) => {
2807+
ItemKind::Trait(_, generics, bounds, item_ids) => {
28082808
let items = item_ids
28092809
.iter()
28102810
.map(|ti| clean_trait_item(cx.tcx.hir().trait_item(ti.id), cx))

src/librustdoc/html/render/span_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ impl<'tcx> Visitor<'tcx> for SpanMapVisitor<'tcx> {
226226
| ItemKind::Enum(_, _)
227227
| ItemKind::Struct(_, _)
228228
| ItemKind::Union(_, _)
229-
| ItemKind::Trait(_, _, _, _, _)
229+
| ItemKind::Trait(_, _, _, _)
230230
| ItemKind::TraitAlias(_, _) => self.extract_info_from_hir_id(item.hir_id()),
231231
ItemKind::Impl(_)
232232
| ItemKind::Use(_, _)

0 commit comments

Comments
 (0)