aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-07-23 14:21:43 +0000
committerGitHub <noreply@github.com>2021-07-23 14:21:43 +0000
commit314b62ec787abdf320fcca8ceb09b8c9bcf72512 (patch)
tree84466ab994fe528038b51bc19e75757f4247eaf4 /gcc/rust/backend/rust-compile-expr.h
parentafd9db6f6b28d273434b0c61ec0b1aa0dcc4c89f (diff)
parent4d841a49ddb49d7201f0af98ddd3baf3a745c65c (diff)
downloadgcc-314b62ec787abdf320fcca8ceb09b8c9bcf72512.zip
gcc-314b62ec787abdf320fcca8ceb09b8c9bcf72512.tar.gz
gcc-314b62ec787abdf320fcca8ceb09b8c9bcf72512.tar.bz2
Merge #591
591: Remove error handling in parse_type_no_bounds for PLUS token r=philberty a=philberty 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. Co-authored-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions