Skip to content

The new complete semicolon feature fails with closures #18130

Closed
@ChayimFriedman2

Description

@ChayimFriedman2

Filling this mostly for myself so I remember to work on this later: when implementing the complete semicolon for unit returning functions feature, I forgot another incompliance: closure's last statement can be an expression, and commonly people do not wrap the closure's body in a block even when it returns (), but now we'll complete ; which breaks it.

@rustbot claim

Metadata

Metadata

Labels

C-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions