ICE when #[track_caller]
is applied to a static
item
#105594
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
Error output
error[E0739]: attribute should be applied to a function definition
error: internal compiler error: compiler/rustc_hir_analysis/src/collect.rs:1183: unexpected sort of node in
fn_sig()
:Item(...)
Full output with backtrace
Regression
Regression in nightly-2021-11-29, perhaps from #91251
Commits in range
Version
CC @cjgillot, who recently fixed a similar ICE in #105201
The text was updated successfully, but these errors were encountered: