Use CreateParameter mode for closures too.
This commit is contained in:
parent
32af719b07
commit
7437136f0e
6 changed files with 83 additions and 65 deletions
|
@ -1459,11 +1459,13 @@ impl<'a> State<'a> {
|
|||
}
|
||||
hir::ExprKind::Closure {
|
||||
capture_clause,
|
||||
bound_generic_params,
|
||||
ref fn_decl,
|
||||
body,
|
||||
fn_decl_span: _,
|
||||
movability: _,
|
||||
} => {
|
||||
self.print_formal_generic_params(bound_generic_params);
|
||||
self.print_capture_clause(capture_clause);
|
||||
|
||||
self.print_closure_params(&fn_decl, body);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue