Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sergeysova opened this issue Oct 29, 2018 · 3 comments
Closed

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

sergeysova opened this issue Oct 29, 2018 · 3 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@sergeysova
Copy link

sergeysova commented Oct 29, 2018

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
@sergeysova sergeysova changed the title cargo-doc compiler panicked at 'Box<Any>' cargo-doc compiler panicked at 'Box<Any>' impossible case reached Oct 29, 2018
@sergeysova sergeysova changed the title cargo-doc compiler panicked at 'Box<Any>' impossible case reached cargo-doc: compiler panicked at 'Box<Any>' impossible case reached Oct 29, 2018
@memoryruins memoryruins added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ labels Oct 29, 2018
@memoryruins
Copy link
Contributor

Thanks for reporting!
This should be fixed by #55258, which is currently in 1.31.0-nightly (cae6efc37 2018-10-27)+
cc #54002, except this report is on stable

@baloo
Copy link

baloo commented Nov 3, 2018

I was running the same issue, can't reproduce with rustc 1.32.0-nightly (8b096314a 2018-11-02). I haven't checked the specific version you mentioned though.

@pietroalbini
Copy link
Member

Duplicate of #52873

@pietroalbini pietroalbini marked this as a duplicate of #52873 Nov 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants