aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-base.cc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-03-31 09:56:35 +0000
committerGitHub <noreply@github.com>2022-03-31 09:56:35 +0000
commit9011184f38a04f81ba3194b826bec3f30a11c07b (patch)
treed85ff3be8c56dfb9d27c64a856b3523e197b41f6 /gcc/rust/backend/rust-compile-base.cc
parentf9c1a14dab4c47c774f9c7661afc4bb2176eb9bb (diff)
parent73532817fd6f5aa4f59953f4111217a75135a78b (diff)
downloadgcc-9011184f38a04f81ba3194b826bec3f30a11c07b.zip
gcc-9011184f38a04f81ba3194b826bec3f30a11c07b.tar.gz
gcc-9011184f38a04f81ba3194b826bec3f30a11c07b.tar.bz2
Merge #1071
1071: Allow transcribing of zero nodes in certain cases r=CohenArthur a=CohenArthur 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: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.cc')
0 files changed, 0 insertions, 0 deletions