ICE: no name for expr |a|
#67634
Labels
A-borrow-checker
Area: The borrow checker
A-NLL
Area: Non-lexical lifetimes (NLL)
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The compiler panics when referencing a captured variable inside a nested closure.
This happens on the playground nightly build "rustc 1.42.0-nightly (ed33453 2019-12-25) running on x86_64-unknown-linux-gnu" as well as MSVC stable "stable-x86_64-pc-windows-msvc updated - rustc 1.40.0 (73528e3 2019-12-16)".
This issue feels awfully related to #67252. But from what I gathered, its fix (#67289) went live a couple of days ago and should be in the playground version 1.42.0-nightly (ed33453 2019-12-25).
I tried this code (minimal-ish example):
https://gist.github.com/rust-play/362fc228ed152a41e5b216603e7c236f
I expected to see this happen: No compiler errors or warnings and especially no crash.
Meta
rustc --version --verbose
:rustc 1.40.0 (73528e3 2019-12-16)
binary: rustc
commit-hash: 73528e3
commit-date: 2019-12-16
host: x86_64-pc-windows-msvc
release: 1.40.0
LLVM version: 9.0
Backtrace (from the playground):
Standard Error
The text was updated successfully, but these errors were encountered: