aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-backend.h
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2021-07-18 22:12:20 +0200
committerPhilip Herron <philip.herron@embecosm.com>2021-07-23 15:03:34 +0100
commit4d841a49ddb49d7201f0af98ddd3baf3a745c65c (patch)
tree7c6398be4a4b25c7b3248700bb41b9eafacef8fe /gcc/rust/rust-backend.h
parent44472c580cedd836081c82e621482e479a69729c (diff)
downloadgcc-4d841a49ddb49d7201f0af98ddd3baf3a745c65c.zip
gcc-4d841a49ddb49d7201f0af98ddd3baf3a745c65c.tar.gz
gcc-4d841a49ddb49d7201f0af98ddd3baf3a745c65c.tar.bz2
Remove error handling in parse_type_no_bounds for PLUS token
parse_type_no_bounds tries to be helpful and greedily looks for a PLUS token after having parsed a typepath so it can produce an error. But that error breaks parsing expressions that contain "as" Cast Expressions like "a as usize + b as usize". Drop the explicit error on seeing a PLUS token and just return the type path parsed.
Diffstat (limited to 'gcc/rust/rust-backend.h')
0 files changed, 0 insertions, 0 deletions