aboutsummaryrefslogtreecommitdiff
path: root/gcc/gdbhooks.py
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2023-04-19 17:40:15 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2023-04-21 08:47:11 +0000
commit82e26f836210a2defed7e49d7d2655b5525f0561 (patch)
tree46d44207a78d07a1df1d416fd21dbe1c6d1b7277 /gcc/gdbhooks.py
parent428a31804b8c56fd8aee8b7db7adf087e350ad60 (diff)
downloadgcc-82e26f836210a2defed7e49d7d2655b5525f0561.zip
gcc-82e26f836210a2defed7e49d7d2655b5525f0561.tar.gz
gcc-82e26f836210a2defed7e49d7d2655b5525f0561.tar.bz2
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 'gcc/gdbhooks.py')
0 files changed, 0 insertions, 0 deletions