diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-05-19 15:51:49 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-05-19 16:13:41 +1000 |
| commit | 1b422451aeb61b57e2843d379d83d710ea50b9d9 (patch) | |
| tree | 32358688eef1a0780e7357b285891e89dfc8836e /compiler/rustc_parse/src/parser/stmt.rs | |
| parent | 4c5f6e6277b89e47d73a192078697f7a5f3dc0ac (diff) | |
| download | rust-1b422451aeb61b57e2843d379d83d710ea50b9d9.tar.gz rust-1b422451aeb61b57e2843d379d83d710ea50b9d9.zip | |
Move condition out of `maybe_recover_from_bad_qpath`.
Diffstat (limited to 'compiler/rustc_parse/src/parser/stmt.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/stmt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/stmt.rs b/compiler/rustc_parse/src/parser/stmt.rs index 56ebac0953b..85faa84e9cf 100644 --- a/compiler/rustc_parse/src/parser/stmt.rs +++ b/compiler/rustc_parse/src/parser/stmt.rs @@ -180,7 +180,7 @@ impl<'a> Parser<'a> { } else { // Since none of the above applied, this is an expression statement macro. let e = self.mk_expr(lo.to(hi), ExprKind::MacCall(mac), AttrVec::new()); - let e = self.maybe_recover_from_bad_qpath(e, true)?; + let e = self.maybe_recover_from_bad_qpath(e)?; let e = self.parse_dot_or_call_expr_with(e, lo, attrs.into())?; let e = self.parse_assoc_expr_with(0, LhsExpr::AlreadyParsed(e))?; StmtKind::Expr(e) |
