Skip to content

Commit

Permalink
rustdoc: Include lifetimes in re-exported bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjakubowski committed Oct 6, 2014
1 parent 3bd4475 commit 7a6eaea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librustdoc/clean/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
}
}
Expand Down

1 comment on commit 7a6eaea

@alexcrichton
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+, awesome!

Please sign in to comment.