-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Open
15 / 1915 of 19 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 teamT-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
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
- What exactly are the semantics of passing indirect arguments? What about by-move arguments? Also see Miri reports UB for explicit tail call with by-value non-ZST struct parameter #144820.
(fill when the rfc is merged)
Implementation history
- Syntactically accept
becomeexpressions (explicit tail calls experiment) #112790 - llvm ffi: Expose
CallInst->setTailCallKind#112791 -
hir: AddBecomeexpression kind (explicit tail calls experiment) #112887 -
thir: AddBecomeexpression kind #113093 - Document
becomekeyword #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
becomeand explicit tail call codegen for the LLVM backend #144232 - detect infinite recursion with tail calls in ctfe #144756
- Properly reject tail calls to
&FnPtror&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
- tail calls: fix copying non-scalar arguments to callee #150473
- add assembly test for infinite recursion with
become#148907 - error when ABI does not support guaranteed tail calls #148878
- rustc_codegen: fix musttail returns for cast/indirect ABIs #148240
- Tail call diagnostics to include lifetime info #145012
- Additional tce tests #144650
- Fix an ICE observed with an explicit tail-call in a default trait method #145270
- explicit tail calls: support indirect arguments #151143
Reactions are currently unavailable
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 teamT-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.