Skip to content

Commit b35832e

Browse files
committed
Implement implied_bounds functionality for generic type parameters.
1 parent bd3ac03 commit b35832e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1222
-170
lines changed

src/librustdoc/clean/auto_trait.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ fn synthesize_auto_trait_impl<'tcx>(
103103
// regardless of the choice of `T`.
104104
let mut generics = clean_ty_generics_inner(
105105
cx,
106+
item_def_id,
106107
tcx.generics_of(item_def_id),
107108
ty::GenericPredicates::default(),
108109
);

src/librustdoc/clean/inline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ pub(crate) fn build_impl(
536536
})
537537
.map(|item| clean_impl_item(item, cx))
538538
.collect::<Vec<_>>(),
539-
clean_generics(impl_.generics, cx),
539+
clean_generics(impl_.generics, did, cx),
540540
),
541541
None => (
542542
tcx.associated_items(did)

0 commit comments

Comments
 (0)