diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-06-28 13:53:37 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:49:29 +0100 |
commit | e6c44bae4e3ab962aed6354830d0fdc74dd2c49b (patch) | |
tree | 15696aa5028849f586e1c4592b70841a1bba3c0d /gcc/rust/hir | |
parent | eebe4063c1a839a71fd21cb477c9d9a6cc906195 (diff) | |
download | gcc-e6c44bae4e3ab962aed6354830d0fdc74dd2c49b.zip gcc-e6c44bae4e3ab962aed6354830d0fdc74dd2c49b.tar.gz gcc-e6c44bae4e3ab962aed6354830d0fdc74dd2c49b.tar.bz2 |
gccrs: parser: Propagate type hint value
Type hint value was not propagated correctly to LiteralPattern in ast.
This was defaulted to CORETYPE_STR instead, which introduced several
bugs with systems that did require any ast collection.
gcc/rust/ChangeLog:
* ast/rust-pattern.h: Change constructor to accept new parameter
instead of defaulting on string type.
* parse/rust-parse-impl.h (Parser::parse_literal_or_range_pattern):
Propagate type hint.
(Parser::parse_pattern_no_alt): Likewise.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions