-
-
Notifications
You must be signed in to change notification settings - Fork 15k
[ICE]: Reborrow causes entered unreachable code in expr_as_place. #156482
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-reborrow`#![feature(reborrow)]`; see #145612`#![feature(reborrow)]`; see #145612I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-reborrow`#![feature(reborrow)]`; see #145612`#![feature(reborrow)]`; see #145612I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
Meta
Reproducible on the playground with version
1.97.0-nightly (2026-05-10 4b0c9d76ae7d387229ca)Error output
Backtrace
Relevant code:
rust/compiler/rustc_mir_build/src/builder/expr/as_place.rs
Lines 593 to 598 in aa31d6d