Open
2 of 3 issues completedDescription
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