Skip to content

Commit 7a6eaea

Browse files
committed
rustdoc: Include lifetimes in re-exported bounds
Fix #17818
1 parent 3bd4475 commit 7a6eaea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ impl Clean<TyParam> for ty::TypeParameterDef {
462462
fn clean(&self, cx: &DocContext) -> TyParam {
463463
cx.external_typarams.borrow_mut().as_mut().unwrap()
464464
.insert(self.def_id, self.ident.clean(cx));
465+
465466
TyParam {
466467
name: self.ident.clean(cx),
467468
did: self.def_id,
@@ -581,6 +582,9 @@ impl Clean<Vec<TyParamBound>> for ty::ParamBounds {
581582
for t in self.trait_bounds.iter() {
582583
v.push(t.clean(cx));
583584
}
585+
for r in self.region_bounds.iter().filter_map(|r| r.clean(cx)) {
586+
v.push(RegionBound(r));
587+
}
584588
return v;
585589
}
586590
}

0 commit comments

Comments
 (0)