diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-10-14 16:06:33 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-02-21 12:36:35 +0100 |
commit | 8f0b1526e04c80fd3cc30f692f482df14939088b (patch) | |
tree | 6f073fd86bca5240d90db3144eccf3ecdb24f32d /gcc/rust/resolve/rust-ast-resolve-expr.cc | |
parent | acbaadfa46d0833a28b935e5cfab1bc2b30467a6 (diff) | |
download | gcc-8f0b1526e04c80fd3cc30f692f482df14939088b.zip gcc-8f0b1526e04c80fd3cc30f692f482df14939088b.tar.gz gcc-8f0b1526e04c80fd3cc30f692f482df14939088b.tar.bz2 |
gccrs: Support outer attribute handling on trait items just like normal items
gcc/rust/ChangeLog:
* hir/rust-ast-lower-base.h (class ItemWrapper): New class.
* hir/rust-ast-lower-base.cc (ASTLoweringBase::handle_outer_attributes): Use
`ItemWrapper` class.
(ASTLoweringBase::handle_doc_item_attribute): Likewise.
(ASTLoweringBase::handle_lang_item_attribute): Likewise.
* hir/rust-ast-lower-implitem.h: Check outer attributes on items.
* hir/tree/rust-hir-item.h: Add `get_trait_locus` methods.
* hir/tree/rust-hir.h: Likewise.
* util/rust-hir-map.h: Add defId mappings and associated functions.
* util/rust-hir-map.cc (Mappings::insert_defid_mapping): Implement insertion to said
mappings.
(Mappings::lookup_trait_item_defid): And looking up said mappings.
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions