diff options
| author | bors <bors@rust-lang.org> | 2022-03-23 16:53:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-03-23 16:53:47 +0000 |
| commit | 547369d3d881a9eb1de0d3e368f9a59aa7c648b0 (patch) | |
| tree | 5b9982f526330a2bd9fa6d513db1f1f568f76773 /src/test/ui/async-await/async-block-control-flow-static-semantics.rs | |
| parent | 92804455704cc59d6d8272faf72f442c6125d395 (diff) | |
| parent | 3729b17b7e960a95d0887dc0fff28b25a1393385 (diff) | |
| download | rust-547369d3d881a9eb1de0d3e368f9a59aa7c648b0.tar.gz rust-547369d3d881a9eb1de0d3e368f9a59aa7c648b0.zip | |
Auto merge of #95220 - rust-lang:notriddle/ast-validation-semicolon, r=Dylan-DPC
diagnostics: do not suggest `fn foo({ <body> }`
Instead of suggesting that the body always replace the last character on the line, presuming it must be a semicolon, the parser should instead check what the last character is, and append the body if it is anything else.
Fixes #83104
Diffstat (limited to 'src/test/ui/async-await/async-block-control-flow-static-semantics.rs')
0 files changed, 0 insertions, 0 deletions
