Add in the bounds into the typeparameterdefs for assoc types

This commit is contained in:
Niko Matsakis 2014-10-29 05:58:31 -04:00
parent 319d778ed3
commit 94d142b596
2 changed files with 62 additions and 65 deletions

View file

@ -2203,12 +2203,12 @@ impl Clean<Stability> for attr::Stability {
impl Clean<Item> for ast::AssociatedType {
fn clean(&self, cx: &DocContext) -> Item {
Item {
source: self.span.clean(cx),
name: Some(self.ident.clean(cx)),
source: self.ty_param.span.clean(cx),
name: Some(self.ty_param.ident.clean(cx)),
attrs: self.attrs.clean(cx),
inner: AssociatedTypeItem,
visibility: None,
def_id: ast_util::local_def(self.id),
def_id: ast_util::local_def(self.ty_param.id),
stability: None,
}
}