aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/rust-hir-dump.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-08-29 14:42:02 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-09-06 11:50:30 +0000
commit53ad5220c4e79618ca80681cbf59a6e2c7cde832 (patch)
treeaddf4f944bde51f53fd76b7806b0ae882ff90c9f /gcc/rust/hir/rust-hir-dump.cc
parent97bd31cdafe04348c72c883231561e2479c5022a (diff)
downloadgcc-53ad5220c4e79618ca80681cbf59a6e2c7cde832.zip
gcc-53ad5220c4e79618ca80681cbf59a6e2c7cde832.tar.gz
gcc-53ad5220c4e79618ca80681cbf59a6e2c7cde832.tar.bz2
Use optional for proc macro invocation lookup
The old interface for those mappings was clunky at best. Now we can use the optional structure to return a reference to the instance. gcc/rust/ChangeLog: * expand/rust-macro-expand.h (struct MacroExpander): Update lookup function prototypes. * util/rust-hir-map.cc (Mappings::lookup_derive_proc_macro_invocation): Update lookup function according to new signature. (Mappings::lookup_bang_proc_macro_invocation): Likewise. (Mappings::lookup_attribute_proc_macro_invocation): Likewise. * util/rust-hir-map.h: Update function prototypes. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir/rust-hir-dump.cc')
0 files changed, 0 insertions, 0 deletions