ICE: compiler/rustc_infer/src/infer/at.rs:400:21
: relating different kinds: '?20 utoipa::openapi::RefOr<utoipa::openapi::Schema>
#127761
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
I hit this ICE while at work. I was unfortunately not able to reduce this example further as it was behaving unpredictably based on the toolchain and the version of
utoipa
installed (either=4.2.2
or=4.2.3
).Meta
I could repro the issue in beta but not in nightly.
rustc --version --verbose
:Error output
The ICE itself:
Sometimes (in some toolchains and with some versions of the crate), instead of the ICE I get ~2000 lines of type errors:
https://pastebin.com/9hR6ruWY
On nightly (
1.81.0-nightly (d8a38b000 2024-06-19)
), and withutoipa = "=4.2.2"
, I managed to get the somewhat sane:Backtrace
The text was updated successfully, but these errors were encountered: