Skip to content

regression: let-else syntax restriction (right curly brace not allowed) #121608

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum

https://crater-reports.s3.amazonaws.com/beta-1.77-3/beta-2024-02-18/gh/Rayzeq.UntimedExplosion/log.txt

I suspect this was an intentional change but we should track down the PR and make sure it's mentioned in relnotes.

[INFO] [stdout] error: right curly brace `}` before `else` in a `let...else` statement not allowed
[INFO] [stdout]    --> src/game.rs:349:13
[INFO] [stdout]     |
[INFO] [stdout] 349 |             } else { break; };
[INFO] [stdout]     |             ^
[INFO] [stdout]     |
[INFO] [stdout] help: use parentheses instead of braces for this macro
[INFO] [stdout]     |
[INFO] [stdout] 341 ~             let Some(msg) = select! ( else { break; };
[INFO] [stdout] 342 ~             let Some(msg) = select! ) else { break; };
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: right curly brace `}` before `else` in a `let...else` statement not allowed
[INFO] [stdout]    --> src/lobby.rs:282:13
[INFO] [stdout]     |
[INFO] [stdout] 282 |             } else { break; };
[INFO] [stdout]     |             ^
[INFO] [stdout]     |
[INFO] [stdout] help: use parentheses instead of braces for this macro
[INFO] [stdout]     |
[INFO] [stdout] 274 ~             let Some(msg) = select! ( else { break; };
[INFO] [stdout] 275 ~             let Some(msg) = select! ) else { break; };
[INFO] [stdout]     |

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-langRelevant to the language team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions