ICE when building documentation: DefId(20:797 ...) does not have a "object_lifetime_default" #115179
Labels
A-cross-crate-reexports
Area: Documentation that has been re-exported from a different crate
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-critical
Critical priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I found out about the ICE when my crate
dicom-parser
could not have its documentation online on docs.rs (build log). I managed to narrow it down to the code below.All of the code here builds fine (
cargo check
,cargo build
), but on the latest stable and nightly it fails when doingcargo doc
.Code
Originally,
DynEncoder
came from a separate crate,dicom-encoding
. To my surprise, using the dependency instead of replicating the symbols to this crate results in a more informative top-level error message of the ICE. Withwe can instead do:
The full project can also be found in this repository.
Meta
Reproduced on more than one toolchain and platform, among which:
Error output
Without the dependency:
with the dependency
dicom-encoding
:Backtrace
The text was updated successfully, but these errors were encountered: