about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-11-14 20:39:25 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-11-16 20:03:31 +0000
commit629a69f3e2728251774f825ff54cb642b38249df (patch)
treed90b3e2ce53111f6ed5d02ee48d932164b54813e /compiler/rustc_codegen_gcc
parent04fe8391775683e58d861f28678bf80940c91f44 (diff)
downloadrust-629a69f3e2728251774f825ff54cb642b38249df.tar.gz
rust-629a69f3e2728251774f825ff54cb642b38249df.zip
Better account for `else if` macro conditions mising an `if`
If a macro statement has been parsed after `else`, suggest a missing `if`:

```
error: expected `{`, found `falsy`
  --> $DIR/else-no-if.rs:47:12
   |
LL |     } else falsy! {} {
   |       ---- ^^^^^
   |       |
   |       expected an `if` or a block after this `else`
   |
help: add an `if` if this is the condition of a chained `else if` statement
   |
LL |     } else if falsy! {} {
   |            ++
```
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions