1
Fork 0

Remove hir::ImplItem::attrs.

This commit is contained in:
Camille GILLOT 2020-11-27 09:55:10 +01:00
parent c49359add2
commit 5474f17011
13 changed files with 23 additions and 36 deletions

View file

@ -931,10 +931,10 @@ impl<'hir> LoweringContext<'_, 'hir> {
let has_value = true;
let (defaultness, _) = self.lower_defaultness(i.kind.defaultness(), has_value);
let hir_id = self.lower_node_id(i.id);
self.lower_attrs(hir_id, &i.attrs);
hir::ImplItem {
def_id: hir_id.expect_owner(),
ident: i.ident,
attrs: self.lower_attrs(hir_id, &i.attrs),
generics,
vis: self.lower_visibility(&i.vis, None),
defaultness,