<p dir="auto">When I go to build something with rustpkg after modifying any file other than main.rs, despite main.rs having <code class="notranslate">mod foo;</code> where the file I'm editing is foo.rs, it doesn't check if that file has been updated when I build.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustpkg --version
WARNING: The Rust package manager is experimental and may be unstable
rustpkg 0.8-pre (4c6bf48 2013-09-17 20:35:54 -0700)
host: x86_64-unknown-linux-gnu"><pre class="notranslate"><code class="notranslate">$ rustpkg --version
WARNING: The Rust package manager is experimental and may be unstable
rustpkg 0.8-pre (4c6bf48 2013-09-17 20:35:54 -0700)
host: x86_64-unknown-linux-gnu
</code></pre></div>
<p dir="auto">Code like</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mod foo {
    struct S;
}
mod foo {
    struct P;
}"><pre class="notranslate"><span class="pl-k">mod</span> foo <span class="pl-kos">{</span>
    <span class="pl-k">struct</span> <span class="pl-smi">S</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">mod</span> foo <span class="pl-kos">{</span>
    <span class="pl-k">struct</span> <span class="pl-smi">P</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Generates the error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo.rs:4:0: 6:1 error: duplicate definition of type `foo`
foo.rs:4 mod foo {
foo.rs:5     struct P;
foo.rs:6 }
foo.rs:1:0: 3:1 note: first definition of type foo here:
foo.rs:1 mod foo {
foo.rs:2     struct S;
foo.rs:3 }"><pre class="notranslate"><code class="notranslate">foo.rs:4:0: 6:1 error: duplicate definition of type `foo`
foo.rs:4 mod foo {
foo.rs:5     struct P;
foo.rs:6 }
foo.rs:1:0: 3:1 note: first definition of type foo here:
foo.rs:1 mod foo {
foo.rs:2     struct S;
foo.rs:3 }
</code></pre></div>
<p dir="auto">Which is wrong. <code class="notranslate">foo</code> is not a type, it's a module.</p>