ICE: found unstable fingerprints for has_global_allocator(): false #84252
Labels
A-incr-comp
Area: Incremental compilation
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.
I just found this randomly in a GitHub Actions Workflow run, so I have no idea what could've caused it or if there's already an issue for this.
Code
I'm not sure if this is the relevant code but it's the only code that addresses a global allocator.
Permalink to source
My best guess is that the
#[cfg]
doesn't apply to the attribute#[global_allocator]
, but just to the static variable it is qualifying. This means my code is not correct (I should have used#[cfg_attr(feature = "wee_alloc")]
as a guard), so I'd expect this to cause a compiler error considering#[global_allocator]
isn't really attached to anything. However, this ICEd the compiler, which was unexpected.Meta
rustc --version --verbose
:(I hard-wrapped the following lines for readability)
Error output
Note:
image_go_nord
is my crate name.Backtrace
I will post the backtrace when I configure it, but here is the "query stack" for now.
The action run is publicly availble. If not,
I have attached the relevent log file.
The text was updated successfully, but these errors were encountered: