From 62b8ea67b79de77fca36ca82de4b934307b6de30 Mon Sep 17 00:00:00 2001 From: Noah Lev Date: Thu, 17 Feb 2022 14:52:52 -0800 Subject: Emit both subexp and standalone sugg for postfix This solves the TODO. --- compiler/rustc_parse/src/parser/expr.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'compiler/rustc_parse/src/parser/expr.rs') 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; } -- cgit 1.4.1-3-g733a5