diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2020-11-27 00:35:22 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-09 19:23:07 +0100 |
| commit | 4bab93a03924c4044f20e7aee6e0036f6a96d586 (patch) | |
| tree | d33a911b21c7ef070fd22bfdba9b10946223b0ff /compiler/rustc_ast_lowering/src | |
| parent | c298744da7208ebb37a76909eefdce2cc5698f79 (diff) | |
| download | rust-4bab93a03924c4044f20e7aee6e0036f6a96d586.tar.gz rust-4bab93a03924c4044f20e7aee6e0036f6a96d586.zip | |
Remove hir::ForeignItem::attrs.
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
| -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 3cb1a9e994f..bb3af1b7ac9 100644 --- a/compiler/rustc_ast_lowering/src/item.rs +++ b/compiler/rustc_ast_lowering/src/item.rs @@ -700,10 +700,10 @@ impl<'hir> LoweringContext<'_, 'hir> { fn lower_foreign_item(&mut self, i: &ForeignItem) -> hir::ForeignItem<'hir> { let hir_id = self.lower_node_id(i.id); let def_id = hir_id.expect_owner(); + self.lower_attrs(hir_id, &i.attrs); hir::ForeignItem { def_id, ident: i.ident, - attrs: self.lower_attrs(hir_id, &i.attrs), kind: match i.kind { ForeignItemKind::Fn(box FnKind(_, ref sig, ref generics, _)) => { let fdec = &sig.decl; |
