syntax::ast::Expr_::ExprClosure
should have an Expr instead of Block
#27872
Labels
A-parser
Area: The lexing & parsing of Rust source code to an AST
Currently closures of the form
|a| a * a
are very hard to pretty-print sincea * a
is wrapped in anast::Block
, even though there are no curly braces.Match arms contain general sub-expressions, as well.
Is there any technical reason why they are treated differently?
The text was updated successfully, but these errors were encountered: