From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id BA2A5385829A; Tue, 19 Jul 2022 21:57:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BA2A5385829A Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] Merge #1394 X-Act-Checkin: gcc X-Git-Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com> X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: 6622ae2cd0a6b69b84a33f61ae7707c02caa88b9 X-Git-Newrev: 1b5676645a52f46de0011b9434f76c249fbb8d81 Message-Id: <20220719215752.BA2A5385829A@sourceware.org> Date: Tue, 19 Jul 2022 21:57:52 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2022 21:57:52 -0000 https://gcc.gnu.org/g:1b5676645a52f46de0011b9434f76c249fbb8d81 commit 1b5676645a52f46de0011b9434f76c249fbb8d81 Merge: 6622ae2cd0a fb1b2a6bf5e Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Date: Tue Jul 19 10:32:55 2022 +0000 Merge #1394 1394: Fix parsing grammer of grouped expressions as the block tail expression r=philberty a=philberty When we want to compile a grouped expression we had a check for the LEFT_PAREN during the parse_expr_without_block but this can't be handled here since in this paticular example the grouped expressions is simply the lhs of the bit shift expression. This is already handled as part of parse_expr so we can simply remove the rule here and rely on parse_expr handling this. Fixes #1393 Co-authored-by: Philip Herron Diff: gcc/rust/parse/rust-parse-impl.h | 6 ------ gcc/testsuite/rust/compile/issue-1393.rs | 13 +++++++++++++ 2 files changed, 13 insertions(+), 6 deletions(-)