aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/Make-lang.in
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-05-28 13:33:52 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:37:22 +0100
commit57c5d234792b6bc00f3ef29148733617db8c86d2 (patch)
tree54e18358d7ab846809708fde57e717a3dc0282fa /gcc/rust/Make-lang.in
parent253c7343bbb7dcae208ed9342e76b8a5715ad829 (diff)
downloadgcc-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