diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-05-28 13:33:52 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:37:22 +0100 |
commit | 57c5d234792b6bc00f3ef29148733617db8c86d2 (patch) | |
tree | 54e18358d7ab846809708fde57e717a3dc0282fa /gcc/rust/Make-lang.in | |
parent | 253c7343bbb7dcae208ed9342e76b8a5715ad829 (diff) | |
download | gcc-57c5d234792b6bc00f3ef29148733617db8c86d2.zip gcc-57c5d234792b6bc00f3ef29148733617db8c86d2.tar.gz gcc-57c5d234792b6bc00f3ef29148733617db8c86d2.tar.bz2 |
gccrs: Avoid invalid metavariable substitutions
gcc/rust/ChangeLog:
* expand/rust-macro-substitute-ctx.cc
(SubstituteCtx::substitute_metavar): Allow substitution failure.
(SubstituteCtx::substitute_token):
Handle substitution failure, include dollar sign in count of tokens to substitute.
(SubstituteCtx::substitute_tokens):
Include dollar sign in count of tokens to substitute.
* expand/rust-macro-substitute-ctx.h
(SubstituteCtx::substitute_metavar):
Adjust signature and document new substitution failure handling.
gcc/testsuite/ChangeLog:
* rust/compile/issue-2225.rs: New test.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/Make-lang.in')
0 files changed, 0 insertions, 0 deletions