ICE: Unexpected type Binder for Field projection
#141418
Labels
C-bug
Category: This is a bug.
F-unsafe_binders
`#![feature(unsafe_binders)]`
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.
Uh oh!
There was an error while loading. Please reload this page.
Code
A mutant from
tests/ui/attributes/no-mangle-closure.rs
Meta
rustc --version --verbose
:Error output
command:
rustc --edition=2021
Backtrace
Bisects to
searched nightlies: from nightly-2024-05-01 to nightly-2025-05-22
regressed nightly: nightly-2025-02-02
searched commit range: 854f225...8239a37
regressed commit: 8239a37
bisected with cargo-bisect-rustc v0.6.9
Host triple: x86_64-unknown-linux-gnu
Reproduce with:
Notes
ICE location:
compiler/rustc_middle/src/ty/closure.rs Line-116
rust/compiler/rustc_middle/src/ty/closure.rs
Lines 99 to 118 in 2eef478
Issue-117707 has identical ICE location
The code in this report is nearly identical to that in ICE:
could not resolve upvar: LocalVarId(HirId(DefId))
#141417, except that it usesx: unsafe<'a> S
as a parameter, whereas issue-141417 usesx: unsafe<'a> &'a S
.@rustbot label +F-unsafe_binders
The text was updated successfully, but these errors were encountered: