thread 'rustc' panicked at 'assertion failed: !value.has_escaping_bound_vars()' #92271
Labels
C-bug
Category: This is a bug.
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
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.
I don't know how actionable this is, but it's probably better if I report this than not.
I get the error only when compiling in debug mode, both on stable and nightly.
With
--release
, it just works without any warning.Code
?
Sorry, I really don't know how to narrow this down.
For what it's worth, this is a server-side web frontend project with a macro DSL that's translated into rather long statements. I think the longest one is around 60k codepoints after using
cargo +nightly expand
, though that's with very generous whitespace use. It contains a number of nested closures with explicit but partially inferred return type.I'm not entirely certain, but I think it started happening when I fixed an expression ordering problem. Solving it combined multiple statements into one.
Meta
rustc --version --verbose
:rustc +nightly --version --verbose
:Error output
stable:
nightly:
Backtrace
The normal backtrace didn't really add anything, so I went with the full one:
The text was updated successfully, but these errors were encountered: