Skip to content

triggering a compiler bug with cargo doc #48368

Closed
@ramsayleung

Description

@ramsayleung

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

  1. git clone https://github.com/samrayleung/rspotify /tmp
  2. cd /tmp/rspotify
  3. 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 :)

Metadata

Metadata

Labels

C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions