aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2025-04-08 14:41:16 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2025-04-14 08:03:49 +0000
commit780ebba8a9152598e0fde0528c2fc63d9f474fcd (patch)
treebf59145420917214e7efc7a30ef6bd9e11e56f60 /gcc/rust/hir
parent688b8d8b0e24aa7e2a7f741355d696f60337f956 (diff)
downloadgcc-780ebba8a9152598e0fde0528c2fc63d9f474fcd.zip
gcc-780ebba8a9152598e0fde0528c2fc63d9f474fcd.tar.gz
gcc-780ebba8a9152598e0fde0528c2fc63d9f474fcd.tar.bz2
expansion: Only add fragments if the matcher succeeded
gcc/rust/ChangeLog: * expand/rust-macro-expand.cc (MacroExpander::match_n_matches): Do not insert fragments and substack fragments if the matcher failed. gcc/testsuite/ChangeLog: * rust/compile/macros/mbe/macro-issue3708.rs: New test.
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions