about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/expr.rs
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-11-21 12:40:27 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2023-06-26 08:56:32 +0000
commitccb71ff424a37f0a52111bc0884b0df282dbcb6d (patch)
tree3947cf438ed1ae013f349a152a71101168922fbc /compiler/rustc_ast_lowering/src/expr.rs
parent97bf23d26b1ffff46f071aa687945a6cf85a5914 (diff)
downloadrust-ccb71ff424a37f0a52111bc0884b0df282dbcb6d.tar.gz
rust-ccb71ff424a37f0a52111bc0884b0df282dbcb6d.zip
`hir`: Add `Become` expression kind
Diffstat (limited to 'compiler/rustc_ast_lowering/src/expr.rs')
-rw-r--r--compiler/rustc_ast_lowering/src/expr.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_ast_lowering/src/expr.rs b/compiler/rustc_ast_lowering/src/expr.rs
index 225714a1361..29972dd76eb 100644
--- a/compiler/rustc_ast_lowering/src/expr.rs
+++ b/compiler/rustc_ast_lowering/src/expr.rs
@@ -277,9 +277,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
                 ExprKind::Yeet(sub_expr) => self.lower_expr_yeet(e.span, sub_expr.as_deref()),
                 ExprKind::Become(sub_expr) => {
                     let sub_expr = self.lower_expr(sub_expr);
-
-                    // FIXME(explicit_tail_calls): Use `hir::ExprKind::Become` once we implemented it
-                    hir::ExprKind::Ret(Some(sub_expr))
+                    hir::ExprKind::Become(sub_expr)
                 }
                 ExprKind::InlineAsm(asm) => {
                     hir::ExprKind::InlineAsm(self.lower_inline_asm(e.span, asm))