aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-10-23 15:00:54 +0200
committerPhilip Herron <philip.herron@embecosm.com>2023-10-31 11:39:08 +0000
commit5d622b6a6d61743e054b226e441c755e1062c067 (patch)
tree4f48f75fa3ad2e2705f3d8cf2bf67a3e7333d838 /gcc/rust/hir
parent4ac19a050193e0091a9556997780a0affb8a9621 (diff)
downloadgcc-5d622b6a6d61743e054b226e441c755e1062c067.zip
gcc-5d622b6a6d61743e054b226e441c755e1062c067.tar.gz
gcc-5d622b6a6d61743e054b226e441c755e1062c067.tar.bz2
Document proc macro token tree indices
Multiple references to procedural macro token trees were left as magic number in the code. This commit introduces some constexpr for those along some explanation for the selected value. gcc/rust/ChangeLog: * backend/rust-compile-base.cc (get_attributes): Add documentation for indices 3 and 4. (get_trait_name): Add documentation for index 1. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions