-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
7 / 167 of 16 issues completedLabels
B-experimentalBlocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).Blocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-explicit_tail_calls`#![feature(explicit_tail_calls)]``#![feature(explicit_tail_calls)]`T-langRelevant to the language teamRelevant to the language team
Description
This is a tracking issue for the RFC "Explicit Tail Calls" (rust-lang/rfcs#3407) (note that RFC is not accepted yet, this feature is currently implemented as part of an experiment).
The feature gate for the issue is #![feature(explicit_tail_calls)]
.
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
- Implement the RFC
- Adjust documentation (see instructions on rustc-dev-guide)
- Stabilization PR (see instructions on rustc-dev-guide)
Unresolved Questions
(fill when the rfc is merged)
Implementation history
- Syntactically accept
become
expressions (explicit tail calls experiment)ย #112790 - llvm ffi: Expose
CallInst->setTailCallKind
ย #112791 -
hir
: AddBecome
expression kind (explicit tail calls experiment)ย #112887 -
thir
: AddBecome
expression kindย #113093 - Document
become
keywordย #113095 - Support tail calls in mir via
TerminatorKind::TailCall
ย #113128 - implement checks for tail callsย #133607
- fix tail call checks wrt
#[track_caller]
ย #135973 - Don't drop types with no drop glue when building drops for tailcallsย #135976
- Implement support for
become
and explicit tail call codegen for the LLVM backendย #144232 - detect infinite recursion with tail calls in ctfeย #144756
- Properly reject tail calls to
&FnPtr
or&FnDef
ย #144817 - Anonymize binders in tail call sigย #144835
- Forbid tail calling intrinsicsย #144851
- Fix tail calls to
#[track_caller]
functionsย #144865 - Enforce tail call type is related to body return type in borrowckย #144917
- Dont print arg span in MIR dump for tail callย #144920
- Allocate arguments from topmost frame into temporary storage before popping stack frame in
init_fn_tail_call
ย #144933 - Defer tail call ret ty equality to check_tail_callsย #144915
schneiderfelipe, leonardo-m, smasher164, xty, DrGo and 19 moreschneiderfelipe, smasher164, yerke, chrilves, rami3l and 5 moreDdystopia, jprochazk, narpfel, TENX-S, KisaragiEffective and 28 moreRobbepop, compiler-errors, saethlin, phi-go, lqd and 14 moreZapeth, schneiderfelipe, smasher164, Mroik, Rudxain and 1 more
Sub-issues
Metadata
Metadata
Assignees
Labels
B-experimentalBlocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).Blocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-explicit_tail_calls`#![feature(explicit_tail_calls)]``#![feature(explicit_tail_calls)]`T-langRelevant to the language teamRelevant to the language team