<p dir="auto">Three different FIXMEs in <code class="notranslate">trans::tvec</code> suggest improvements to be made to do with the representation types for vectors: "This is not the correct type" in both <code class="notranslate">alloc_uniq_raw</code> and <code class="notranslate">duplicate_uniq</code>, and "Optimize this when the size of the unit type is statically known" in <code class="notranslate">iter_vec_raw</code>.</p>
<p dir="auto">A recent change broke this code:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use a::*;
use b::*;

mod a { pub fn foo() {} }
mod b { pub fn foo() {} }"><pre class="notranslate"><span class="pl-k">use</span> a<span class="pl-kos">::</span><span class="pl-c1">*</span><span class="pl-kos">;</span>
<span class="pl-k">use</span> b<span class="pl-kos">::</span><span class="pl-c1">*</span><span class="pl-kos">;</span>

<span class="pl-k">mod</span> a <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span>
<span class="pl-k">mod</span> b <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">This gives an error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test.rs:4:5: 4:10 error: a value named `foo` has already been imported in this module
test.rs:4 use b::*;"><pre class="notranslate"><code class="notranslate">test.rs:4:5: 4:10 error: a value named `foo` has already been imported in this module
test.rs:4 use b::*;
</code></pre></div>
<p dir="auto">This makes globs <em>a lot</em> less useful than they were before. If globs are going to be only useful in isolation, why have them as a feature at all?</p>