diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-03-29 10:12:48 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-03-31 11:32:26 +0200 |
commit | 73532817fd6f5aa4f59953f4111217a75135a78b (patch) | |
tree | d85ff3be8c56dfb9d27c64a856b3523e197b41f6 /gcc/rust/backend/rust-compile-implitem.cc | |
parent | f9c1a14dab4c47c774f9c7661afc4bb2176eb9bb (diff) | |
download | gcc-73532817fd6f5aa4f59953f4111217a75135a78b.zip gcc-73532817fd6f5aa4f59953f4111217a75135a78b.tar.gz gcc-73532817fd6f5aa4f59953f4111217a75135a78b.tar.bz2 |
macros: Allow transcribing of zero items
When expanding AST fragments containing multiple nodes, we must be aware
that some cases allow expanding zero or more nodes. Any macro
transcription that gets parsed as many nodes (ie any transcriber function that calls `parse_many`) needs to be able to parse zero of those nodes and still get expanded properly (basically, removed).
Previously, this would cause a failure to lower the macro invocation which would remain as a child instead of getting stripped/erased.
Co-authored-by: philberty <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-implitem.cc')
0 files changed, 0 insertions, 0 deletions