Skip to content

Instantly share code, notes, and snippets.

@erickt
Created April 14, 2012 01:36
Show Gist options
  • Save erickt/2381410 to your computer and use it in GitHub Desktop.
Save erickt/2381410 to your computer and use it in GitHub Desktop.
#[link(name = "a", vers = "0.1")];
#[crate_type = "lib"];
#[link(name = "b", vers = "0.1")];
#[crate_type = "lib"];
use a;
type d = str;
impl d for d { }
#[link(name = "c", vers = "0.1")];
#[crate_type = "lib"];
use b;
mod d;
import b::d;
type t = uint;
// blank
use c;
import c::t;
fn main() {}
./run-rustc a.rs
warning: no debug symbols in executable (-arch x86_64)
./run-rustc b.rs
warning: no debug symbols in executable (-arch x86_64)
./run-rustc c.rc
warning: no debug symbols in executable (-arch x86_64)
./run-rustc e.rs
rust: upcall fail 'lookup_item: id not found: 7', ../src/rustc/metadata/decoder.rs:94
error: internal compiler error unexpected failure
note: The compiler hit an unexpected failure path. This is a bug. Try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: upcall fail 'explicit failure', ../src/rustc/driver/rustc.rs:188
rust: domain main @0x103000010 root task failed
make: *** [all] Error 101
@jbclements
Copy link

@erickt: I'm trying to get this test running. Was "impl d for d" a key part of this bug? I can't see how to get this running in modern rust. I could just take it out...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment