Skip to content

Commit

Permalink
Built artifacts of 9e61724 [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
mhammond committed May 3, 2024
1 parent d9b474e commit 8509935
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -915,10 +915,10 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
<span class="kw">let </span><span class="kw-2">mut </span>ordered = <span class="macro">vec!</span>[];
<span class="kw">for </span>type_ <span class="kw">in </span><span class="self">self</span>.ci.iter_types() {
<span class="kw">if let </span>Type::Custom { name, builtin, .. } = type_ {
<span class="kw">match </span>ordered
.iter()
.position(|x: <span class="kw-2">&amp;</span>(<span class="kw-2">&amp;</span>str, <span class="kw-2">&amp;</span>Type)| <span class="kw-2">*</span>name == x.<span class="number">1</span>.as_codetype().type_label())
{
<span class="kw">match </span>ordered.iter().position(|x: <span class="kw-2">&amp;</span>(<span class="kw-2">&amp;</span>str, <span class="kw-2">&amp;</span>Type)| {
x.<span class="number">1</span>.iter_types()
.any(|nested_type| <span class="kw-2">*</span>name == nested_type.as_codetype().type_label())
}) {
<span class="comment">// This 'name' appears as a builtin, so we must insert our type first.
</span><span class="prelude-val">Some</span>(pos) =&gt; ordered.insert(pos, (name, builtin)),
<span class="comment">// Otherwise at the end.
Expand Down

0 comments on commit 8509935

Please sign in to comment.