diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2020-11-27 09:41:53 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-09 19:23:08 +0100 |
| commit | c49359add2dd78b28b907cd2d7a06473ff91626e (patch) | |
| tree | 4ef96374dcdbacc922a88bb324d7bb9c1777551b /compiler/rustc_ast_lowering/src | |
| parent | 4bab93a03924c4044f20e7aee6e0036f6a96d586 (diff) | |
| download | rust-c49359add2dd78b28b907cd2d7a06473ff91626e.tar.gz rust-c49359add2dd78b28b907cd2d7a06473ff91626e.zip | |
Remove hir::TraitItem::attrs.
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/item.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/compiler/rustc_ast_lowering/src/item.rs b/compiler/rustc_ast_lowering/src/item.rs index bb3af1b7ac9..50db57eedb2 100644 --- a/compiler/rustc_ast_lowering/src/item.rs +++ b/compiler/rustc_ast_lowering/src/item.rs @@ -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 { |
