aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/rust-hir-dump.cc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-06-03 17:40:18 -0400
committerCohenArthur <arthur.cohen@embecosm.com>2023-06-30 08:01:24 +0000
commit40b4f94e9597627fa57d77a87fd8ac0a187f4a7d (patch)
tree3b833bb32b48b85a273b086af22694ece30ae8e6 /gcc/rust/hir/rust-hir-dump.cc
parent7af86eaaffec8cab5ad80e242480fe9f6c1ffaa6 (diff)
downloadgcc-40b4f94e9597627fa57d77a87fd8ac0a187f4a7d.zip
gcc-40b4f94e9597627fa57d77a87fd8ac0a187f4a7d.tar.gz
gcc-40b4f94e9597627fa57d77a87fd8ac0a187f4a7d.tar.bz2
Improve macro repetition handling
gcc/rust/ChangeLog: * expand/rust-macro-expand.cc (MacroExpander::match_matcher): Remove append_fragment inside repetitions. (MacroExpander::match_n_matches): Use sub_stack push/pop to handle repetitions. (MatchedFragmentContainer::add_fragment): Add MatchedFragmentContainer accepting version. * expand/rust-macro-expand.h (MatchedFragmentContainer::add_fragment): Likewise. (MatchedFragmentContainerRepetition::add_fragment): Likewise. (SubstititionScope::append_fragment): Likewise. gcc/testsuite/ChangeLog: * rust/compile/macro56.rs: New test. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/hir/rust-hir-dump.cc')
0 files changed, 0 insertions, 0 deletions