<p dir="auto"><code class="notranslate">test.rs</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mod test;
fn main(){}"><pre class="notranslate"><code class="notranslate">mod test;
fn main(){}
</code></pre></div>
<p dir="auto">causes</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rust: task 7f855ac0c250 ran out of stack
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /private/tmp/rust-GCHx/rust-0.6/src/librustc/rustc.rc:357
rust: domain main @0x7f855b009810 root task failed"><pre class="notranslate"><code class="notranslate">rust: task 7f855ac0c250 ran out of stack
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /private/tmp/rust-GCHx/rust-0.6/src/librustc/rustc.rc:357
rust: domain main @0x7f855b009810 root task failed
</code></pre></div>
<p dir="auto">While I was playing with the new rustc 0.6, I encountered an internal compiler error</p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="~/project/protobuf-rust(master) &gt; RUST_LOG=rustc=1,::rt::backtrace rustc protobuf.rs --test -o protobuf-tests
rust: task 7fbd705018b0 ran out of stack
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /Users/kimhyunkang/usr/pkgs/rust-0.6/src/librustc/rustc.rc:357
rust: domain main @0x7fbd70819410 root task failed"><pre class="notranslate"><span class="pl-c1">~/project/protobuf-rust(master) &gt; RUST_LOG=rustc=1,::rt::backtrace rustc protobuf.rs --test -o protobuf-tests</span>
<span class="pl-c1">rust: task 7fbd705018b0 ran out of stack</span>
<span class="pl-c1">error: internal compiler error: unexpected failure</span>
<span class="pl-c1">note: the compiler hit an unexpected failure path. this is a bug</span>
<span class="pl-c1">note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues</span>
<span class="pl-c1">rust: task failed at 'explicit failure', /Users/kimhyunkang/usr/pkgs/rust-0.6/src/librustc/rustc.rc:357</span>
<span class="pl-c1">rust: domain main @0x7fbd70819410 root task failed</span></pre></div>
<p dir="auto">The source code is here: <a href="https://gist.github.com/kimhyunkang/5307274">https://gist.github.com/kimhyunkang/5307274</a></p>
<p dir="auto">Compiler version is 0.6, built with gcc, on OS X 10.7.5</p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="~/project/protobuf-rust(master) &gt; rustc --version
rustc 0.6
host: x86_64-apple-darwin"><pre class="notranslate"><span class="pl-c1">~/project/protobuf-rust(master) &gt; rustc --version</span>
<span class="pl-c1">rustc 0.6</span>
<span class="pl-c1">host: x86_64-apple-darwin</span></pre></div>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="~/project/protobuf-rust(master) &gt; gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."><pre class="notranslate"><span class="pl-c1">~/project/protobuf-rust(master) &gt; gcc --version</span>
<span class="pl-c1">i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)</span>
<span class="pl-c1">Copyright (C) 2007 Free Software Foundation, Inc.</span>
<span class="pl-c1">This is free software; see the source for copying conditions.  There is NO</span>
<span class="pl-c1">warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</span></pre></div>