diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-03-17 08:27:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-17 08:27:03 +0000 |
commit | bb234b080a5be332bbe67d9920a65959124088e7 (patch) | |
tree | 2994256031de74d0471629a79bc936287c059bbd /gcc/rust/parse/rust-parse.cc | |
parent | 2dfc19647774cb26a0f735bda8006068a40cfba0 (diff) | |
parent | 02887c88f57834e3c5b20e98e15710fc7e43562d (diff) | |
download | gcc-bb234b080a5be332bbe67d9920a65959124088e7.zip gcc-bb234b080a5be332bbe67d9920a65959124088e7.tar.gz gcc-bb234b080a5be332bbe67d9920a65959124088e7.tar.bz2 |
Merge #1021
1021: macros: Do not try and re-expand if depth has exceeded recursion limit r=CohenArthur a=CohenArthur
We need to limit the amount of times that macro get expanded recursively
during macro-expansion. This limits the amount of times an ASTFragment
can be visited by simply incrementing the depth when setting a fragment,
and decreasing it when taking one. This way, recursive expansion which
happens at the expansion level (instead of the matching level) will
still get caught
Fixes #1012
Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/parse/rust-parse.cc')
0 files changed, 0 insertions, 0 deletions