diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-08-28 11:39:44 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2023-09-05 14:05:36 +0000 |
commit | b2af85c218b0646833ab8cadc9cf8aacc182fb6f (patch) | |
tree | dc3f9c6c06ce4aa19e01a0892ebdc22fb488dbce /gcc/rust/hir/rust-hir-dump.cc | |
parent | f1527eff1e1387a19fe7db115f7157962780d72c (diff) | |
download | gcc-b2af85c218b0646833ab8cadc9cf8aacc182fb6f.zip gcc-b2af85c218b0646833ab8cadc9cf8aacc182fb6f.tar.gz gcc-b2af85c218b0646833ab8cadc9cf8aacc182fb6f.tar.bz2 |
resolver: Refactor macro insertion
Add a templated function to insert any of the three kind of proc macro
into the resolver context.
gcc/rust/ChangeLog:
* expand/rust-proc-macro.h: Change get_trait_name to get_name in
order to be coherent with the others proc macro type name
convention.
* resolve/rust-toplevel-name-resolver-2.0.cc (insert_macros):
Add a templated funtion that inserts a proc macro into the
context and emit an error on failure.
(TopLevel::visit): Change from manual insertion to a function
call.
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