instruction_set
attribute can be applied to anything
#128489
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: compilation failure because of attribute on an item where it makes no sense
Instead, this happened: compiled successfully
Meta
rustc --version --verbose
:cc #74727
see #128444 for where to fix this issue, though it will be a breaking change if we hard error. That seems fine though, as the attribute is completely useless on these places.
The text was updated successfully, but these errors were encountered: