Skip to content

cargo-doc: compiler panicked at 'Box<Any>' impossible case reached #55489

Closed
@sergeysova

Description

@sergeysova

Steps to reproduce:
0. macOS Mojave 10.14 (18A389)

  1. clone and checkout https://github.com/paholg/typenum/tree/284f456a707229bdbcac5a951d6e8b138a5abcc3
  2. cargo doc

Result:

   Compiling typenum v1.10.0 (/Users/sergeysova/Projects/typenum)
 Documenting typenum v1.10.0 (/Users/sergeysova/Projects/typenum)
error: internal compiler error: librustc/traits/structural_impls.rs:178: impossible case reached

thread '<unnamed>' panicked at 'Box<Any>', librustc_errors/lib.rs:587:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.

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.30.0 (da5f414c2 2018-10-24) running on x86_64-apple-darwin

error: Could not document `typenum`.

Caused by:
  process didn't exit successfully: `rustdoc --crate-name typenum src/lib.rs --color always -o /Users/sergeysova/Projects/typenum/target/doc -L dependency=/Users/sergeysova/Projects/typenum/target/debug/deps` (exit code: 1)

Stable:

rustc 1.30.0 (da5f414c2 2018-10-24)
binary: rustc
commit-hash: da5f414c2c0bfe5198934493f04c676e2b23ff2e
commit-date: 2018-10-24
host: x86_64-apple-darwin
release: 1.30.0
LLVM version: 8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    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