diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-04-19 17:40:15 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:34:10 +0100 |
commit | 94f2a1ce4b582e250b8a760a2acdd77cf98dd454 (patch) | |
tree | 3cfe9552976b96cedb8fbbfe6e2e1113749bad44 /README | |
parent | 0b48fddeee8497369d39dcd5904bbf808cb52bd3 (diff) | |
download | gcc-94f2a1ce4b582e250b8a760a2acdd77cf98dd454.zip gcc-94f2a1ce4b582e250b8a760a2acdd77cf98dd454.tar.gz gcc-94f2a1ce4b582e250b8a760a2acdd77cf98dd454.tar.bz2 |
gccrs: parser: Parse reference patterns correctly
Reference patterns cannot contain AltPatterns per the Rust reference,
so we should not call into `parse_pattern` to parse the referenced pattern,
but rather the more restrictive `parse_pattern_no_alt`.
gcc/rust/ChangeLog:
* parse/rust-parse-impl.h (Parser::parse_reference_pattern): Do not
call into `parse_pattern` anymore.
gcc/testsuite/ChangeLog:
* rust/compile/issue-1807.rs: New test.
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions