ICE: write_immediate_to_mplace: invalid Scalar layout:
with feature const_mut_refs
and const_refs_to_static
#127266
Labels
C-bug
Category: This is a bug.
F-const_mut_refs
`#![feature(const_mut_refs)]`
F-const_refs_to_static
`#![feature(const_refs_to_static)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Related Issue
#126666 The origin of seed file before mutation. Line
x: &mut *(&READONLY as *const _ as *mut _),
mutated tox: &mut *(READONLY as *mut _),
#126272 is also another ICE with similar ice message
write_immediate_to_mplace:
, but that requires incomplete featuresMeta
rustc --version --verbose
:Error output
Backtrace
@rustbot label +F-const_mut_refs +F-const_refs_to_static
The text was updated successfully, but these errors were encountered: