diff options
| author | Michael Goulet <michael@errs.io> | 2022-07-23 17:46:20 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-08-12 15:18:40 +0000 |
| commit | 237cbe91a83905abe379586f10605999c1e0bc4d (patch) | |
| tree | 7e7026702ae48cd90ceeee2c160c62154b212a31 /compiler/rustc_parse/src/parser | |
| parent | 262644d94a8391acc6cb806b62b8de6bc02123f5 (diff) | |
| download | rust-237cbe91a83905abe379586f10605999c1e0bc4d.tar.gz rust-237cbe91a83905abe379586f10605999c1e0bc4d.zip | |
Adjust span of closure param
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 2880ef78c8d..33bebfc2c9a 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -2268,7 +2268,7 @@ impl<'a> Parser<'a> { attrs: attrs.into(), ty, pat, - span: lo.to(this.token.span), + span: lo.to(this.prev_token.span), id: DUMMY_NODE_ID, is_placeholder: false, }, |
