aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/util/rust-hir-map.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-10-17 09:33:26 +0000
committerGitHub <noreply@github.com>2022-10-17 09:33:26 +0000
commita14da50ebe674b8444c578454cd7914327f90755 (patch)
treebd2978fd7526f02da03f2127be6547e440bcf60c /gcc/rust/util/rust-hir-map.h
parent3922772f5f2e5ab245342defca6b53e1563de881 (diff)
parente8c82076bc6aff3d8df4da228dfdb617ae7372e2 (diff)
parent68af6007a9f44496eab9364141741b09ef75d5b0 (diff)
downloadgcc-a14da50ebe674b8444c578454cd7914327f90755.zip
gcc-a14da50ebe674b8444c578454cd7914327f90755.tar.gz
gcc-a14da50ebe674b8444c578454cd7914327f90755.tar.bz2
Merge #1594 #1595
1594: Refactor TraitResolver to not require a visitor r=philberty a=philberty We used a visitor to dispatch the HIR::Item so that we could cast it directly to an HIR::Trait and then check for nullptr if it failed. This patch changes this to simply use our new enum item_type_kind to switch so we can directly static_cast. 1595: Support outer attribute handling on trait items just like normal items r=philberty a=philberty This patch adds a proxy class ItemWrapper to be a proxy allowing us to use the same code paths for attribute handling as we have with normal items. We need this so we can grab the fn trait associated type lang item's. Which are being missed currently. Addresses #195 Co-authored-by: Philip Herron <philip.herron@embecosm.com>