about summary refs log tree commit diff
path: root/src/tools/rustfmt
diff options
context:
space:
mode:
authorSarthak Singh <ss269@uw.edu>2022-11-09 20:39:28 +0530
committerSarthak Singh <ss269@uw.edu>2022-11-28 14:09:00 +0530
commit8f705e2425ff459566cd1da0f2c79060fdad9091 (patch)
treea89e14443b862c7334dfbaa63f8c2fb9147f4894 /src/tools/rustfmt
parent872631d0f0fadffe3220ab1bd9c8f1f2342341e2 (diff)
downloadrust-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.rs1
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, _)