Skip to content
This repository was archived by the owner on Nov 9, 2025. It is now read-only.
This repository was archived by the owner on Nov 9, 2025. It is now read-only.

Closure parameter list #8

@dtolnay

Description

@dtolnay

The ClosureExpr node is currently defined in a way that would imply parentheses around the parameters () body, rather than vertical pipes || body.

ungrammar/rust.ungram

Lines 423 to 425 in 07d5806

ClosureExpr =
Attr* 'static'? 'async'? 'move'? ParamList RetType?
body:Expr

ungrammar/rust.ungram

Lines 135 to 139 in 07d5806

ParamList =
'('(
SelfParam
| (SelfParam ',')? (Param (',' Param)* ','?)?
)')'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions