aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree/rust-hir-expr.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-08-28 11:39:44 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:04:34 +0100
commit86661b8d3d97d18a799468226f1b34d9682e9732 (patch)
tree492bc03d419c69c5549bfaad22a24c1cec762f02 /gcc/rust/hir/tree/rust-hir-expr.h
parent342b071a0fac00d8acf745348c41afcd48cdb4cb (diff)
downloadgcc-86661b8d3d97d18a799468226f1b34d9682e9732.zip
gcc-86661b8d3d97d18a799468226f1b34d9682e9732.tar.gz
gcc-86661b8d3d97d18a799468226f1b34d9682e9732.tar.bz2
gccrs: 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/tree/rust-hir-expr.h')
0 files changed, 0 insertions, 0 deletions