You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<trclass="need head row-odd"><tdclass="need head"><divclass="needs_head line-block">
@@ -160,12 +160,12 @@ <h1>Associated Items<a class="headerlink" href="#associated-items" title="Link t
160
160
</div>
161
161
</td>
162
162
</tr>
163
-
<trclass="need content row-odd"><tdclass="need content" colspan="1"><p>Recursive functions can easily cause stack overflows, which may result in exceptions or, in some cases, undefined behavior (typically some embedded systems). Although the Rust compiler supports <aclass="reference external" href="https://en.wikipedia.org/wiki/Tail_call">tail call optimization</a>, this optimization is not guaranteed and depends on the specific implementation and function structure. There is an <aclass="reference external" href="https://github.com/phi-go/rfcs/blob/guaranteed-tco/text/0000-explicit-tail-calls.md">open RFC to guarantee tail call optimization in the Rust compiler</a>, but this feature has not yet been stabilized. Until tail call optimization is guaranteed and stabilized, developers should avoid using recursive functions to prevent potential stack overflows and ensure program reliability.</p></td>
163
+
<trclass="need content row-odd"><tdclass="need content" colspan="1"><p>Recursive functions can easily cause stack overflows, which may result in exceptions or, in some cases, undefined behavior (typically some embedded systems). Although the Rust compiler supports tail call optimization <aclass="citation-ref reference internal" href="#cite-gui_ot2Zt3dd6of1-WIKI-TAIL-CALL">[WIKI-TAIL-CALL]</a>, this optimization is not guaranteed and depends on the specific implementation and function structure. There is an open RFC to guarantee tail call optimization in the Rust compiler<aclass="citation-ref reference internal" href="#cite-gui_ot2Zt3dd6of1-PROPOSED-RFC-EXPLICIT-TAIL-CALLS">[PROPOSED-RFC-EXPLICIT-TAIL-CALLS]</a>, but this feature has not yet been stabilized. Until tail call optimization is guaranteed and stabilized, developers should avoid using recursive functions to prevent potential stack overflows and ensure program reliability.</p></td>
0 commit comments