Skip to content

Commit 2119f7d

Browse files
authored
Rollup merge of #104199 - SarthakSingh31:issue-97417-1, r=cjgillot
Keep track of the start of the argument block of a closure This removes a call to `tcx.sess.source_map()` from [compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs](https://github.com/rust-lang/rust/compare/master...SarthakSingh31:issue-97417-1?expand=1#diff-8406bbc0d0b43d84c91b1933305df896ecdba0d1f9269e6744f13d87a2ab268a) as required by #97417. VsCode automatically applied `rustfmt` to the files I edited under `src/tools`. I can undo that if its a problem. r? `@cjgillot`
2 parents 46f0b38 + 749c816 commit 2119f7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/closures.rs

+1
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ pub(crate) fn rewrite_last_closure(
335335
ref fn_decl,
336336
ref body,
337337
fn_decl_span: _,
338+
fn_arg_span: _,
338339
} = **closure;
339340
let body = match body.kind {
340341
ast::ExprKind::Block(ref block, _)

0 commit comments

Comments
 (0)