Skip to content

Commit

Permalink
Make tail call expr mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 24, 2024
1 parent d1746fe commit 6cddd9e
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 6cddd9e

Please sign in to comment.