Skip to content

Commit

Permalink
Merge pull request #1725 from dtolnay/tailcall
Browse files Browse the repository at this point in the history
Make tail call expr mandatory
  • Loading branch information
dtolnay authored Aug 24, 2024
2 parents d1746fe + 6cddd9e commit 8f7365f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2400,9 +2400,7 @@ pub(crate) mod parsing {
fn expr_become(input: ParseStream) -> Result<Expr> {
let begin = input.fork();
input.parse::<Token![become]>()?;
if can_begin_expr(input) {
input.parse::<Expr>()?;
}
input.parse::<Expr>()?;
Ok(Expr::Verbatim(verbatim::between(&begin, input)))
}

Expand Down

0 comments on commit 8f7365f

Please sign in to comment.