about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-05-09 23:56:09 +0200
committerGitHub <noreply@github.com>2019-05-09 23:56:09 +0200
commit39edc68c690b2711def27f229ad3d113c55f6354 (patch)
treea0ca4ffa4446344ec7af9c8292ddf259c0b4e120 /src/rustllvm/RustWrapper.cpp
parent62ab971bb7143601a8734a9d3f072232e46eb973 (diff)
parent54430ad53ab00bf86090a8d11844db1c40b2ca24 (diff)
downloadrust-39edc68c690b2711def27f229ad3d113c55f6354.tar.gz
rust-39edc68c690b2711def27f229ad3d113c55f6354.zip
Rollup merge of #60188 - estebank:recover-block, r=varkor
Identify when a stmt could have been parsed as an expr

There are some expressions that can be parsed as a statement without
a trailing semicolon depending on the context, which can lead to
confusing errors due to the same looking code being accepted in some
places and not others. Identify these cases and suggest enclosing in
parenthesis making the parse non-ambiguous without changing the
accepted grammar.

Fix #54186, cc #54482, fix #59975, fix #47287.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions