Closed
Description
Information about bug
I have encountered a compiler bug when I generate doc with cargo doc
, it is information about the compiler bug:
Documenting rspotify v0.1.1 (file:///home/samray/Code/rust/rspotify)
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.24.0 (4d90ac38c 2018-02-12) running on x86_64-unknown-linux-gnu
thread 'rustc' panicked at 'index out of bounds: the len is 0 but the index is 18446744073709551615', /checkout/src/liballoc/vec.rs:1551:10
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: Could not document `rspotify`.
Environment information
OS: fedora 27
Compiler version: stable 1.24.0
How to reproduce
git clone https://github.com/samrayleung/rspotify /tmp
cd /tmp/rspotify
cargo doc
Expected output
Everything is fine, and doc is generated, but encounters an error
Additional Information
I don't whether this bug is fixed, but with nightly
compiler, everything is fine. And sometimes with stable 1.24.0, it also works. Well, it is a little bit weird. Coincidentally, there is a discussion in Reddit about this bug
Hope Rust get better and better :)