aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/parse/rust-parse.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-01-12 17:12:00 +0000
committerPhilip Herron <herron.philip@googlemail.com>2021-01-16 14:15:09 +0000
commite4a2a52b35e99a40f8bd3992a6b53650908fd188 (patch)
tree15df17d22c70ada60c27af51cd89a5dd1dba5e01 /gcc/rust/parse/rust-parse.cc
parentd96e1594dd378078987900819afc611bd0db19b0 (diff)
downloadgcc-e4a2a52b35e99a40f8bd3992a6b53650908fd188.zip
gcc-e4a2a52b35e99a40f8bd3992a6b53650908fd188.tar.gz
gcc-e4a2a52b35e99a40f8bd3992a6b53650908fd188.tar.bz2
Enforce type checking on implicit returns
This change enforces strict type checkon on all ExprWithBlock. This includes unreachable tail expressions. Specific test cases have been added for context to ensure the failure cases are hit accordingly. This change also improves the diagnostic errors for mismatched types where the reference HirId was lost leading to default locations.
Diffstat (limited to 'gcc/rust/parse/rust-parse.cc')
0 files changed, 0 insertions, 0 deletions