#[target_feature(enable = "avx2")] can be applied to non-functions, but doesn't do anything #54584
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-diagnostics
Area: Messages for errors, warnings, and lints
A-target-feature
Area: Enabling/disabling target features like AVX, Neon, etc.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Playground link demonstrating the problem
Playground link when it works
The compiler should tell me that the annotation will not do anything (in the first case)
The text was updated successfully, but these errors were encountered: