about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-06-21 07:37:02 +0200
committerGitHub <noreply@github.com>2023-06-21 07:37:02 +0200
commit0c9482650c5ca253f4d2cd0585ffca6f1a119086 (patch)
tree1909ac25db8e15581a5b598f9770b97571d7033f
parent6d4c2573e77a6b6f36a064d2c21a3c9709bb091b (diff)
parentefec6d61b5f6927b900793f45c9f09b6ccc73bd4 (diff)
Rollup merge of #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`
-rw-r--r--clippy_utils/src/sugg.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_utils/src/sugg.rs b/clippy_utils/src/sugg.rs
index f477524eec5..a87d58110b0 100644
--- a/clippy_utils/src/sugg.rs
+++ b/clippy_utils/src/sugg.rs
@@ -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(..)