From 6cddd9ea714fe034466b4f02d3f7abb484c65ea0 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 23 Aug 2024 23:10:13 -0700 Subject: [PATCH] Make tail call expr mandatory --- src/expr.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/expr.rs b/src/expr.rs index 1d7c7bf4b5..d5c631ed37 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -2400,9 +2400,7 @@ pub(crate) mod parsing { fn expr_become(input: ParseStream) -> Result { let begin = input.fork(); input.parse::()?; - if can_begin_expr(input) { - input.parse::()?; - } + input.parse::()?; Ok(Expr::Verbatim(verbatim::between(&begin, input))) }