1
Fork 0

Remove hir::TraitItem::attrs.

This commit is contained in:
Camille GILLOT 2020-11-27 09:41:53 +01:00
parent 4bab93a039
commit c49359add2
12 changed files with 25 additions and 29 deletions

View file

@ -851,14 +851,8 @@ impl<'hir> LoweringContext<'_, 'hir> {
AssocItemKind::MacCall(..) => panic!("macro item shouldn't exist at this point"),
};
hir::TraitItem {
def_id: trait_item_def_id,
ident: i.ident,
attrs: self.lower_attrs(hir_id, &i.attrs),
generics,
kind,
span: i.span,
}
self.lower_attrs(hir_id, &i.attrs);
hir::TraitItem { def_id: trait_item_def_id, ident: i.ident, generics, kind, span: i.span }
}
fn lower_trait_item_ref(&mut self, i: &AssocItem) -> hir::TraitItemRef {