rust/compiler/rustc_parse
Dylan DPC 0531521dbb
Rollup merge of #97298 - compiler-errors:if-else-stmt-braces, r=davidtwco
Parse expression after `else` as a condition if followed by `{`

Fixes #49361.

Two things:
1. This wording needs help. I can never find a natural/intuitive phrasing when I write diagnostics 😅
2. Do we even want to show the "wrap in braces" case? I would assume most of the time the "add an `if`" case is the right one.
2022-05-24 15:58:24 +02:00
..
src Rollup merge of #97298 - compiler-errors:if-else-stmt-braces, r=davidtwco 2022-05-24 15:58:24 +02:00
Cargo.toml migrate ambiguous plus diagnostic 2022-04-25 22:55:15 +02:00