diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2020-11-27 00:27:34 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-09 19:23:07 +0100 |
| commit | c298744da7208ebb37a76909eefdce2cc5698f79 (patch) | |
| tree | 75c9c57d6e57df9b95f4a301c7af6c97ac5ec67d /compiler/rustc_ast_lowering | |
| parent | 3c0afc3e1c53042915d8626ae55919a64d462333 (diff) | |
| download | rust-c298744da7208ebb37a76909eefdce2cc5698f79.tar.gz rust-c298744da7208ebb37a76909eefdce2cc5698f79.zip | |
Remove hir::StructField::attrs.
Diffstat (limited to 'compiler/rustc_ast_lowering')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/item.rs b/compiler/rustc_ast_lowering/src/item.rs index 00248220212..3cb1a9e994f 100644 --- a/compiler/rustc_ast_lowering/src/item.rs +++ b/compiler/rustc_ast_lowering/src/item.rs @@ -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), } } |
