ICE (failed to get layout for [type error]
) when attempting to doc-test an internal struct of rustfmt
#103027
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.
Code
To repro, try the following steps:
git diff
output below)cargo test
againstrustfmt
I haven't yet tried minimizing this example, because it seems that part of the repro may require depending on the internal
rustc_foo
crates (likerustfmt
does AFAIU). At least the following does not repro the problem:Meta
rustc --version --verbose
:I've tried to see if the ICE also repros on a more recent nightly, but with
rustc 1.66.0-nightly (c0983a9aa 2022-10-12)
I've hit much earlier, different errors when runningcargo test
againstrustfmt
.Error output
The text was updated successfully, but these errors were encountered: