diff options
| author | Yuki Okushi <yuki.okushi@huawei.com> | 2021-09-17 13:39:26 +0900 |
|---|---|---|
| committer | Yuki Okushi <yuki.okushi@huawei.com> | 2021-09-17 13:39:26 +0900 |
| commit | e9bf73cb2b025e188787683f1423177a9102d260 (patch) | |
| tree | dd0a3e2a1064a59b36d6aece647fcdc92812ac9d /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 58765d61ee1762ce0dd9565074000cb9c1267a02 (diff) | |
| download | rust-e9bf73cb2b025e188787683f1423177a9102d260.tar.gz rust-e9bf73cb2b025e188787683f1423177a9102d260.zip | |
Use `multipart_suggestion`
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -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 737f1d9cbb1..d8f9fc9179e 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -2042,7 +2042,7 @@ impl<'a> Parser<'a> { self.check_for_for_in_in_typo(self.prev_token.span); let expr = self.parse_expr_res(Restrictions::NO_STRUCT_LITERAL, None)?; - let pat = self.recover_parens_around_for_head(pat, &expr, begin_paren); + let pat = self.recover_parens_around_for_head(pat, begin_paren); let (iattrs, loop_block) = self.parse_inner_attrs_and_block()?; attrs.extend(iattrs); |
