about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2022-02-17 14:52:52 -0800
committerNoah Lev <camelidcamel@gmail.com>2022-03-23 22:31:57 -0700
commit62b8ea67b79de77fca36ca82de4b934307b6de30 (patch)
tree1c2818418eefb84dcc63361b6a1bce2ddd7b90bc /compiler/rustc_parse/src/parser/expr.rs
parent7287f929b9c4a684be6ea8980970de7693eef841 (diff)
downloadrust-62b8ea67b79de77fca36ca82de4b934307b6de30.tar.gz
rust-62b8ea67b79de77fca36ca82de4b934307b6de30.zip
Emit both subexp and standalone sugg for postfix
This solves the TODO.
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
-rw-r--r--compiler/rustc_parse/src/parser/expr.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs
index 34ccd167e4e..c9864fb9fa3 100644
--- a/compiler/rustc_parse/src/parser/expr.rs
+++ b/compiler/rustc_parse/src/parser/expr.rs
@@ -273,9 +273,7 @@ impl<'a> Parser<'a> {
                 let op_span = self.prev_token.span.to(self.token.span);
                 // Eat the second `+`
                 self.bump();
-                // TODO: implement
-                let start_is_semi = false;
-                lhs = self.maybe_recover_from_postfix_increment(lhs, op_span, start_is_semi)?;
+                lhs = self.maybe_recover_from_postfix_increment(lhs, op_span)?;
                 continue;
             }