diff --git a/src/librustdoc/clean/blanket_impl.rs b/src/librustdoc/clean/blanket_impl.rs index 59fefee5ee4..c257d362694 100644 --- a/src/librustdoc/clean/blanket_impl.rs +++ b/src/librustdoc/clean/blanket_impl.rs @@ -96,7 +96,7 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> { name: None, attrs: Default::default(), visibility: Inherited, - def_id: ItemId::Blanket { trait_: trait_def_id, for_: item_def_id }, + def_id: ItemId::Blanket { impl_id: impl_def_id, for_: item_def_id }, kind: box ImplItem(Impl { span: self.cx.tcx.def_span(impl_def_id).clean(self.cx), unsafety: hir::Unsafety::Normal, diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index 4ffce6c7656..e716e09b8b3 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -57,7 +57,7 @@ /// Identifier that is used for auto traits. Auto { trait_: DefId, for_: DefId }, /// Identifier that is used for blanket implementations. - Blanket { trait_: DefId, for_: DefId }, + Blanket { impl_id: DefId, for_: DefId }, /// Identifier for primitive types. Primitive(PrimitiveType, CrateNum), } diff --git a/src/librustdoc/json/conversions.rs b/src/librustdoc/json/conversions.rs index bd9f54d2e80..bf8db79416b 100644 --- a/src/librustdoc/json/conversions.rs +++ b/src/librustdoc/json/conversions.rs @@ -182,8 +182,8 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match did { ItemId::DefId(did) => Id(format!("{}", DisplayDefId(did))), - ItemId::Blanket { for_, trait_ } => { - Id(format!("b:{}-{}", DisplayDefId(trait_), DisplayDefId(for_))) + ItemId::Blanket { for_, impl_id } => { + Id(format!("b:{}-{}", DisplayDefId(impl_id), DisplayDefId(for_))) } ItemId::Auto { for_, trait_ } => { Id(format!("a:{}-{}", DisplayDefId(trait_), DisplayDefId(for_)))