Skip to content

Commit

Permalink
Rollup merge of rust-lang#112790 - WaffleLapkin:syntactically, r=Nils…
Browse files Browse the repository at this point in the history
…trieb

Syntactically accept `become` expressions (explicit tail calls experiment)

This adds `ast::ExprKind::Become`, implements parsing and properly gates the feature.

cc `@scottmcm`
  • Loading branch information
Noratrieb authored Jun 21, 2023
2 parents 6d4c257 + efec6d6 commit 0c94826
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clippy_utils/src/sugg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ impl<'a> Sugg<'a> {
| ast::ExprKind::Path(..)
| ast::ExprKind::Repeat(..)
| ast::ExprKind::Ret(..)
| ast::ExprKind::Become(..)
| ast::ExprKind::Yeet(..)
| ast::ExprKind::FormatArgs(..)
| ast::ExprKind::Struct(..)
Expand Down

0 comments on commit 0c94826

Please sign in to comment.