Closed
Description
$ rustc-nightly --version
rustc 1.21.0-nightly (f25c2283b 2017-08-15)
$
$ rustc-nightly tmp.rs
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.21.0-nightly (f25c2283b 2017-08-15) running on i686-unknown-linux-gnu
thread 'rustc' panicked at 'index out of bounds: the len is 0 but the index is 0', /checkout/src/librustc_metadata/creader.rs:1217:17
note: Run with `RUST_BACKTRACE=1` for a backtrace.
$
$ cat tmp.rs
#[link(name="foo", cfg())]
extern {}
$