aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2023-04-18 16:22:22 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:37:14 +0100
commit12dd77c19fbcf2446a895804848ffb498e0d3688 (patch)
tree4dd11febfcf3f1b1210939b7b03a4f53c02eef73 /gcc/rust/rust-gcc.cc
parentebbb3d2d5f74f4c00132df085fe7829abba4fe1c (diff)
downloadgcc-12dd77c19fbcf2446a895804848ffb498e0d3688.zip
gcc-12dd77c19fbcf2446a895804848ffb498e0d3688.tar.gz
gcc-12dd77c19fbcf2446a895804848ffb498e0d3688.tar.bz2
gccrs: enr: Accumulate nested escaped macros properly.
gcc/rust/ChangeLog: * resolve/rust-early-name-resolver.cc (is_macro_use_module): New function. (EarlyNameResolver::accumulate_escaped_macros): New function. (EarlyNameResolver::go): Use `accumulate_escaped_macros`. (EarlyNameResolver::visit): Likewise. * resolve/rust-early-name-resolver.h: Declare `accumulate_escaped_macros`. gcc/testsuite/ChangeLog: * rust/compile/macro_use1.rs: New test. * rust/execute/torture/macro_use1.rs: New test. * rust/compile/nested_macro_use1.rs: New test. * rust/compile/nested_macro_use2.rs: New test.
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
0 files changed, 0 insertions, 0 deletions