1
Fork 0

Remove hir::StructField::attrs.

This commit is contained in:
Camille GILLOT 2020-11-27 00:27:34 +01:00
parent 3c0afc3e1c
commit c298744da7
5 changed files with 8 additions and 7 deletions

View file

@ -802,6 +802,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
self.lower_ty(&f.ty, ImplTraitContext::disallowed())
};
let hir_id = self.lower_node_id(f.id);
self.lower_attrs(hir_id, &f.attrs);
hir::StructField {
span: f.span,
hir_id,
@ -812,7 +813,6 @@ impl<'hir> LoweringContext<'_, 'hir> {
},
vis: self.lower_visibility(&f.vis, None),
ty,
attrs: self.lower_attrs(hir_id, &f.attrs),
}
}