ICE: primitive read not possible for type
#141804
Labels
C-bug
Category: This is a bug.
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.
Code
In fact, existing test-case
tests/ui/extern/issue-36122-accessing-externed-dst.rs
shows ICE. Above is just a reduced version of that.Meta
rustc --version --verbose
:Error output
command:
rustc
Backtrace
Bisects to
searched nightlies: from nightly-2024-01-01 to nightly-2025-05-30
regressed nightly: nightly-2025-01-29
searched commit range: 2f348cb...bf1b174
regressed commit: fdd1a3b
bisected with cargo-bisect-rustc v0.6.9
Host triple: x86_64-unknown-linux-gnu
Reproduce with:
Notes
compiler/rustc_const_eval/src/interpret/operand.rs Line-661
rust/compiler/rustc_const_eval/src/interpret/operand.rs
Lines 649 to 662 in 70b3f46
Related Issues with the same ICE location
rustc -Zvalidate-mir -Copt-level=3
option to ICE & they show different query stackgeneric_const_exprs
andmin_generic_const_args
The text was updated successfully, but these errors were encountered: