diff options
| author | David Tolnay <dtolnay@gmail.com> | 2023-12-29 17:37:32 -0800 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2024-05-11 15:49:51 -0700 |
| commit | aedc1b6ad4845242d06a3f7cfb9b57db227b3511 (patch) | |
| tree | 870db4f5636d88f78590959bb71249bf50eb9ca6 /compiler/rustc_errors/src/snippet.rs | |
| parent | 0f6a51d4958dff5a29c121801bcdd619d71db541 (diff) | |
| download | rust-aedc1b6ad4845242d06a3f7cfb9b57db227b3511.tar.gz rust-aedc1b6ad4845242d06a3f7cfb9b57db227b3511.zip | |
Remove MacCall special case from recovery after missing 'if' after 'else'
The change to the test is a little goofy because the compiler was
guessing "correctly" before that `falsy! {}` is the condition as opposed
to the else body. But I believe this change is fundamentally correct.
Braced macro invocations in statement position are most often item-like
(`thread_local! {...}`) as opposed to parenthesized macro invocations
which are condition-like (`cfg!(...)`).
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions
