Internal compiler error in rustc_resolve
when generating documentation
#95728
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.
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: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:
(you can pass
--features image
tocargo 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.
The text was updated successfully, but these errors were encountered: