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

Internal compiler error in rustc_resolve when generating documentation #95728

Closed
honzasp opened this issue Apr 6, 2022 · 1 comment
Closed
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@honzasp
Copy link

honzasp commented Apr 6, 2022

When docs.rs builds documentation for version 0.4.0 of the turbojpeg crate, rustc (rustc 1.62.0-nightly (306ba83 2022-04-05)) crashes:

thread 'rustc' panicked at 'internal error: entered unreachable code', compiler/rustc_resolve/src/lib.rs:3302:67

I managed to reduce the issue to a single line of code:

//! [::image::ImageBuffer]

Reproducing

To reproduce the full issue, you can clone the turbojpeg repo and run:

rustup run nightly -- cargo doc --open

(you can pass --features image to cargo doc to get rid of the "unresolved link" warnings; the crash happens in both cases)

Meta

I can reproduce the same issue locally with the nightly compiler (rustc 1.62.0-nightly (306ba83 2022-04-05)), but not with the stable compiler (rustc 1.59.0 (9d1b210 2022-02-23)).

Error output

For the full backtrace, please see the build report on docs.rs.

@honzasp honzasp added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 6, 2022
@petrochenkov
Copy link
Contributor

This was fixed in #95681.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants