rustdoc: ICE: Cannot turn UnevaluatedConst
into AliasTy
when synthesizing auto trait impls
#134775
Open
1 of 4 tasks
Labels
A-auto-traits
Area: auto traits (e.g., `auto trait Send {}`)
A-synthetic-impls
Area: Synthetic impls, used by rustdoc to document auto traits and traits with blanket impls
C-bug
Category: This is a bug.
F-associated_const_equality
`#![feature(associated_const_equality)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
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.
Affected release channels
Rust Version
Current error output
Backtrace
Anything else?
Initially reported on: rust-lang/docs.rs#2698 (comment)
This ICE only appears when i run
cargo docs-rs
(with thecargo-docs-rs
plugin installed) and when the crate is uploaded to docs.rs.I have a feature that enables the module in question, and disabling this feature makes it build with docs.rs successfully.
It only happens when the file
opt_cell.rs
exists, is included as a module and includes a struct definition. Even if the entire contents of the fileopt_cell.rs
is replaced with the following line, the error still occurs, but if the file is empty, it doesn't.I'm not entirely sure what in my project is causing this, but it's definitely something more than just that single file, that together causes the error. Declaring a struct like above in a new project does not produce the error. It's kind of hard to figure out what part of my code that causes this error. See my previous report on this error for more information about things i've tried to isolate the error (and failed).
It compiles fine with
cargo build --all-features
and it compiles fine withcargo docs-rs
, but notcargo docs-rs
when all features are enabled in the Cargo.toml.Build that showcases the error on docs.rs: https://docs.rs/crate/option_trait/1.0.4/source/
Crate repo: https://www.github.com/sigurd4/option_trait
I've removed all type aliases in my crate, and the error still occurs.
The text was updated successfully, but these errors were encountered: