diff options
| author | Sarthak Singh <ss269@uw.edu> | 2022-11-09 20:39:28 +0530 |
|---|---|---|
| committer | Sarthak Singh <ss269@uw.edu> | 2022-11-28 14:09:00 +0530 |
| commit | 8f705e2425ff459566cd1da0f2c79060fdad9091 (patch) | |
| tree | a89e14443b862c7334dfbaa63f8c2fb9147f4894 /src/tools/rustfmt | |
| parent | 872631d0f0fadffe3220ab1bd9c8f1f2342341e2 (diff) | |
| download | rust-8f705e2425ff459566cd1da0f2c79060fdad9091.tar.gz rust-8f705e2425ff459566cd1da0f2c79060fdad9091.zip | |
Keep track of the start of the argument block of a closure
Diffstat (limited to 'src/tools/rustfmt')
| -rw-r--r-- | src/tools/rustfmt/src/closures.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/rustfmt/src/closures.rs b/src/tools/rustfmt/src/closures.rs index 423c3a997f5..244d4427c56 100644 --- a/src/tools/rustfmt/src/closures.rs +++ b/src/tools/rustfmt/src/closures.rs @@ -335,6 +335,7 @@ pub(crate) fn rewrite_last_closure( ref fn_decl, ref body, fn_decl_span: _, + fn_arg_span: _, } = **closure; let body = match body.kind { ast::ExprKind::Block(ref block, _) |
