ICE: no MIR available for DefId #133578
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-needs-info
Status: The issue lacks details necessary to triage or act on it.
S-needs-repro
Status: This issue has no reproduction and needs a reproduction to make progress.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
I haven't been able to make a minimal reproducer yet, but you can reliably trigger the issue with this branch of Rustls by building the
ech-client.rs
example. The only change I've made in that branch is to fix theCargo.lock
to allow building the example crate with 1.71 by downgrading theclap
dev-dep:On that branch
cargo run --locked -p rustls-examples --bin ech-client
with 1.71 or 1.72 will produce an ICE.By removing this
static
at the bottom ofech-client.rs
(and removing the referencing code) the ICE goes away. The generic code that's failing to compile is located here inrustls/src/crypto/aws_lc_rs/hpke.rs
. If I add a similarstatic
inside of therustls
crate I don't see an ICE, just when I have a cross-cratestatic
reference (?) from an integration test, an example, or another dependent crate.I can reproduce this issue with both 1.72 and 1.71, but not 1.73, or nightly:
Possibly related to #111321 and #111320 ?
Thanks for your help!
Meta
rustc --version --verbose
:rustc --version --verbose
:Error output
For 1.72, running
cargo run --locked -p rustls-examples --bin ech-client
1.72 Backtrace
For 1.71, running
cargo run --locked -p rustls-examples --bin ech-client
1.71 Backtrace
The text was updated successfully, but these errors were encountered: