diff options
author | Sebastian Kirmayer <gnu@kirmayer.eu> | 2023-04-05 06:09:11 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:34:08 +0100 |
commit | 694063d84e47f57c99d4558e789932c31a7bf6dd (patch) | |
tree | 11e5fb50e1d86790cc922c9db61a1f2a8d88eadc /gcc/rust/resolve/rust-ast-resolve-expr.h | |
parent | f2df348dcd5c7ef51e5a686a4d2473ae9bbb36bb (diff) | |
download | gcc-694063d84e47f57c99d4558e789932c31a7bf6dd.zip gcc-694063d84e47f57c99d4558e789932c31a7bf6dd.tar.gz gcc-694063d84e47f57c99d4558e789932c31a7bf6dd.tar.bz2 |
gccrs: parser: macro: reject separator in `?` repetition
A matcher like $(a),? is no longer accepted.
Fixes #2092.
gcc/rust/ChangeLog:
* parse/rust-parse-impl.h
(Parser<ManagedTokenSource>::parse_macro_match_repetition):
reject separator in `?` repetition
gcc/testsuite/ChangeLog:
* rust/compile/macro-issue2092.rs: New test.
Signed-off-by: Sebastian Kirmayer <gnu@kirmayer.eu>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.h')
0 files changed, 0 insertions, 0 deletions