rustdoc: Include lifetimes in re-exported bounds

Fix #17818
This commit is contained in:
Tom Jakubowski 2014-10-06 06:11:21 -07:00
parent 3bd4475278
commit 7a6eaea720
1 changed files with 4 additions and 0 deletions

View File

@ -462,6 +462,7 @@ impl Clean<TyParam> for ty::TypeParameterDef {
fn clean(&self, cx: &DocContext) -> TyParam {
cx.external_typarams.borrow_mut().as_mut().unwrap()
.insert(self.def_id, self.ident.clean(cx));
TyParam {
name: self.ident.clean(cx),
did: self.def_id,
@ -581,6 +582,9 @@ impl Clean<Vec<TyParamBound>> for ty::ParamBounds {
for t in self.trait_bounds.iter() {
v.push(t.clean(cx));
}
for r in self.region_bounds.iter().filter_map(|r| r.clean(cx)) {
v.push(RegionBound(r));
}
return v;
}
}