Skip to content

Commit 0c94826

Browse files
authored
Rollup merge of rust-lang#112790 - WaffleLapkin:syntactically, r=Nilstrieb
Syntactically accept `become` expressions (explicit tail calls experiment) This adds `ast::ExprKind::Become`, implements parsing and properly gates the feature. cc `@scottmcm`
2 parents 6d4c257 + efec6d6 commit 0c94826

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_utils/src/sugg.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ impl<'a> Sugg<'a> {
211211
| ast::ExprKind::Path(..)
212212
| ast::ExprKind::Repeat(..)
213213
| ast::ExprKind::Ret(..)
214+
| ast::ExprKind::Become(..)
214215
| ast::ExprKind::Yeet(..)
215216
| ast::ExprKind::FormatArgs(..)
216217
| ast::ExprKind::Struct(..)

0 commit comments

Comments
 (0)