Skip to content

Commit 6ba9cac

Browse files
committed
deploy: 9fc1e27
1 parent 7d07f41 commit 6ba9cac

8 files changed

Lines changed: 478 additions & 252 deletions

File tree

_static/fls_links.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,14 @@ a.fls-id:hover {
1717
border-bottom: 1px dashed #cc0000;
1818
color: #cc0000;
1919
}
20+
21+
/* Styling for std library reference links */
22+
a.std-ref code.docutils.literal.notranslate {
23+
border-bottom: 1px dotted #0078d7;
24+
text-decoration: none;
25+
}
26+
a.std-ref:hover code.docutils.literal.notranslate {
27+
background-color: rgba(0, 120, 215, 0.1);
28+
border-bottom-style: solid;
29+
border-bottom-color: #0078d7;
30+
}

coding-guidelines/associated-items/index.html

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121

122122
<section id="associated-items">
123123
<h1>Associated Items<a class="headerlink" href="#associated-items" title="Link to this heading"></a></h1>
124-
<div class="need_container docutils container" id="SNCB-aa3b01dd">
124+
<div class="need_container docutils container" id="SNCB-511103c6">
125125
<table class="need needs_grid_simple needs_layout_clean needs_style_none needs_type_guideline docutils align-default" id="gui_ot2Zt3dd6of1">
126126
<tbody>
127127
<tr class="need head row-odd"><td class="need head"><div class="needs_head line-block">
@@ -138,13 +138,13 @@ <h1>Associated Items<a class="headerlink" href="#associated-items" title="Link t
138138
<div class="line"><span class="needs_scope"><span class="needs_label">scope: </span><span class="needs_data">system</span></span></div>
139139
<div class="line"><span class="needs_release"><span class="needs_label">release: </span><span class="needs_data">1.3.0-latest</span></span></div>
140140
</span></span></div>
141-
<div class="line"><span><div class="line">child needs: <span class="parent_needs"><span><a class="reference internal" href="#rat_gvoKeVSKK8fD" title="gui_ot2Zt3dd6of1">rat_gvoKeVSKK8fD</a>, <a class="reference internal" href="#non_compl_ex_MxqhjfkStJJy" title="gui_ot2Zt3dd6of1">non_compl_ex_MxqhjfkStJJy</a>, <a class="reference internal" href="#compl_ex_9pK3h65rfceO" title="gui_ot2Zt3dd6of1">compl_ex_9pK3h65rfceO</a></span></span></div>
141+
<div class="line"><span><div class="line">child needs: <span class="parent_needs"><span><a class="reference internal" href="#rat_gvoKeVSKK8fD" title="gui_ot2Zt3dd6of1">rat_gvoKeVSKK8fD</a>, <a class="reference internal" href="#non_compl_ex_MxqhjfkStJJy" title="gui_ot2Zt3dd6of1">non_compl_ex_MxqhjfkStJJy</a>, <a class="reference internal" href="#compl_ex_9pK3h65rfceO" title="gui_ot2Zt3dd6of1">compl_ex_9pK3h65rfceO</a>, <a class="reference internal" href="#bib_ot2Zt3dd6of1" title="gui_ot2Zt3dd6of1">bib_ot2Zt3dd6of1</a></span></span></div>
142142
</span></div>
143143
</div>
144144
</td>
145145
</tr>
146146
<tr class="need content row-odd"><td class="need content" colspan="1"><p>Any function shall not call itself directly or indirectly</p>
147-
<div class="need_container docutils container" id="SNCB-7fa2f52d">
147+
<div class="need_container docutils container" id="SNCB-860d5671">
148148
<table class="need needs_grid_simple needs_layout_clean needs_style_none needs_type_rationale docutils align-default" id="rat_gvoKeVSKK8fD">
149149
<tbody>
150150
<tr class="need head row-odd"><td class="need head"><div class="needs_head line-block">
@@ -160,12 +160,12 @@ <h1>Associated Items<a class="headerlink" href="#associated-items" title="Link t
160160
</div>
161161
</td>
162162
</tr>
163-
<tr class="need content row-odd"><td class="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 <a class="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 <a class="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+
<tr class="need content row-odd"><td class="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 <a class="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 <a class="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>
164164
</tr>
165165
</tbody>
166166
</table>
167167
</div>
168-
<div class="need_container docutils container" id="SNCB-616d0982">
168+
<div class="need_container docutils container" id="SNCB-1461d542">
169169
<table class="need needs_grid_simple needs_layout_clean needs_style_none needs_type_non_compliant_example docutils align-default" id="non_compl_ex_MxqhjfkStJJy">
170170
<tbody>
171171
<tr class="need head row-odd"><td class="need head"><div class="needs_head line-block">
@@ -210,7 +210,7 @@ <h1>Associated Items<a class="headerlink" href="#associated-items" title="Link t
210210
</tbody>
211211
</table>
212212
</div>
213-
<div class="need_container docutils container" id="SNCB-1be746d6">
213+
<div class="need_container docutils container" id="SNCB-0d798e52">
214214
<table class="need needs_grid_simple needs_layout_clean needs_style_none needs_type_compliant_example docutils align-default" id="compl_ex_9pK3h65rfceO">
215215
<tbody>
216216
<tr class="need head row-odd"><td class="need head"><div class="needs_head line-block">
@@ -270,6 +270,37 @@ <h1>Associated Items<a class="headerlink" href="#associated-items" title="Link t
270270
</tbody>
271271
</table>
272272
</div>
273+
<div class="need_container docutils container" id="SNCB-47475714">
274+
<table class="need needs_grid_simple needs_layout_clean needs_style_none needs_type_bibliography docutils align-default" id="bib_ot2Zt3dd6of1">
275+
<tbody>
276+
<tr class="need head row-odd"><td class="need head"><div class="needs_head line-block">
277+
<div class="line"><span><span class="needs_type_name"><span class="needs_data">Bibliography</span></span>: </span><strong><span></span></strong><span> <span class="needs-id"><a class="reference internal" href="#bib_ot2Zt3dd6of1" title="bib_ot2Zt3dd6of1">bib_ot2Zt3dd6of1</a></span> <span class="needs needs_collapse" id="target__show__meta"><span class="needs collapsed"><svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line></svg></span><span class="needs visible collapse_is_hidden"><svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line></svg></span></span> </span></div>
278+
</div>
279+
</td>
280+
</tr>
281+
<tr class="need meta row-even"><td class="need meta"><div class="needs_meta line-block">
282+
<div class="line"><span><span><div class="line"><span class="needs_status"><span class="needs_label">status: </span><span class="needs_data">draft</span></span></div>
283+
</span></span></div>
284+
<div class="line"><span><div class="line">parent needs: <span class="parent_needs"><span><a class="reference internal" href="#gui_ot2Zt3dd6of1" title="bib_ot2Zt3dd6of1">gui_ot2Zt3dd6of1</a></span></span></div>
285+
</span></div>
286+
</div>
287+
</td>
288+
</tr>
289+
<tr class="need content row-odd"><td class="need content" colspan="1"><table class="bibliography-table docutils align-default">
290+
<tbody>
291+
<tr class="row-odd"><td><p><span class="target" id="cite-gui_ot2Zt3dd6of1-WIKI-TAIL-CALL"></span><strong class="bibentry-key">[WIKI-TAIL-CALL]</strong><a href="javascript:void(0)" onclick="citationGoBack('cite-gui_ot2Zt3dd6of1-WIKI-TAIL-CALL')" class="bibentry-back" title="Return to citation"></a></p></td>
292+
<td><p>Wikipedia. “Tail call.” <a class="reference external" href="https://en.wikipedia.org/wiki/Tail_call">https://en.wikipedia.org/wiki/Tail_call</a></p></td>
293+
</tr>
294+
<tr class="row-even"><td><p><span class="target" id="cite-gui_ot2Zt3dd6of1-PROPOSED-RFC-EXPLICIT-TAIL-CALLS"></span><strong class="bibentry-key">[PROPOSED-RFC-EXPLICIT-TAIL-CALLS]</strong><a href="javascript:void(0)" onclick="citationGoBack('cite-gui_ot2Zt3dd6of1-PROPOSED-RFC-EXPLICIT-TAIL-CALLS')" class="bibentry-back" title="Return to citation"></a></p></td>
295+
<td><p>Philipp Görz. “Open RFC - explicit_tail_calls.” <a class="reference external" href="https://github.com/phi-go/rfcs/blob/guaranteed-tco/text/0000-explicit-tail-calls.md">https://github.com/phi-go/rfcs/blob/guaranteed-tco/text/0000-explicit-tail-calls.md</a></p></td>
296+
</tr>
297+
</tbody>
298+
</table>
299+
</td>
300+
</tr>
301+
</tbody>
302+
</table>
303+
</div>
273304
</td>
274305
</tr>
275306
</tbody>

0 commit comments

Comments
 (0)