thread tighter span for closures around
Track the span corresponding to the `|...|` part of the closure.
This commit is contained in:
committed by
Manish Goregaokar
parent
23ccaddaa7
commit
ecd10f04ce
@@ -2086,7 +2086,7 @@ impl<'a> State<'a> {
|
||||
}
|
||||
self.bclose_(expr.span, INDENT_UNIT)?;
|
||||
}
|
||||
ast::ExprKind::Closure(capture_clause, ref decl, ref body) => {
|
||||
ast::ExprKind::Closure(capture_clause, ref decl, ref body, _) => {
|
||||
self.print_capture_clause(capture_clause)?;
|
||||
|
||||
self.print_fn_block_args(&decl)?;
|
||||
|
||||
Reference in New Issue
Block a user