diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-01-12 17:12:00 +0000 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2021-01-16 14:15:09 +0000 |
commit | e4a2a52b35e99a40f8bd3992a6b53650908fd188 (patch) | |
tree | 15df17d22c70ada60c27af51cd89a5dd1dba5e01 /gcc/rust/parse/rust-parse.cc | |
parent | d96e1594dd378078987900819afc611bd0db19b0 (diff) | |
download | gcc-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