Part of #6993. Moved a bunch of uses of Ident to Name

This commit is contained in:
Jonathan S 2014-09-30 19:11:34 -05:00
parent 7d7e409839
commit 2343e9d354
22 changed files with 356 additions and 372 deletions

View file

@ -463,10 +463,9 @@ impl Clean<TyParam> for ast::TyParam {
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));
.insert(self.def_id, self.name.clean(cx));
TyParam {
name: self.ident.clean(cx),
name: self.name.clean(cx),
did: self.def_id,
bounds: self.bounds.clean(cx),
default: self.default.clean(cx)
@ -1056,7 +1055,7 @@ impl Clean<Item> for ty::Method {
};
Item {
name: Some(self.ident.clean(cx)),
name: Some(self.name.clean(cx)),
visibility: Some(ast::Inherited),
stability: get_stability(cx, self.def_id),
def_id: self.def_id,
@ -2211,7 +2210,7 @@ impl Clean<Item> for ty::AssociatedType {
fn clean(&self, cx: &DocContext) -> Item {
Item {
source: DUMMY_SP.clean(cx),
name: Some(self.ident.clean(cx)),
name: Some(self.name.clean(cx)),
attrs: Vec::new(),
inner: AssociatedTypeItem,
visibility: None,