Skip to content

Commit 8577733

Browse files
committed
Update rustdoc to support #[rustc_auto_trait]
1 parent 15adeea commit 8577733

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
@@ -2793,7 +2793,7 @@ fn clean_maybe_renamed_item<'tcx>(
27932793
ItemKind::Fn(ref sig, generics, body_id) => {
27942794
clean_fn_or_proc_macro(item, sig, generics, body_id, &mut name, cx)
27952795
}
2796-
ItemKind::Trait(_, _, generics, bounds, item_ids) => {
2796+
ItemKind::Trait(_, generics, bounds, item_ids) => {
27972797
let items = item_ids
27982798
.iter()
27992799
.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)