Skip to content

Commit e9e8b61

Browse files
author
Sasha Pourcelot
committed
Rename clo -> closure
1 parent 4107396 commit e9e8b61

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+3
-3
lines changed

compiler/rustc_parse/src/parser/expr.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,18 +1748,18 @@ impl<'a> Parser<'a> {
17481748

17491749
let body_span = body.span;
17501750

1751-
let clo = self.mk_expr(
1751+
let closure = self.mk_expr(
17521752
lo.to(body.span),
17531753
ExprKind::Closure(capture_clause, asyncness, movability, decl, body, lo.to(decl_hi)),
17541754
attrs,
17551755
);
17561756

17571757
// Disable recovery for closure body
17581758
let spans =
1759-
ClosureSpans { whole_closure: clo.span, closing_pipe: decl_hi, body: body_span };
1759+
ClosureSpans { whole_closure: closure.span, closing_pipe: decl_hi, body: body_span };
17601760
self.last_closure_body = Some(spans);
17611761

1762-
Ok(clo)
1762+
Ok(closure)
17631763
}
17641764

17651765
/// Parses an optional `move` prefix to a closure-like construct.

0 commit comments

Comments
 (0)