Attribute paths are not checked for absence of generic arguments #43424
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-syntaxext
Area: Syntax extensions
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
E.g. this successfully compiles on stable 1.19 / beta 1.20 /nightly
There are too many kinds of attributes - built in, custom, derives, legacy derives, procedural macros, legacy procedural macros, maybe something else - I'm not sure which of them are affected. Many of these attributes are removed from AST during expansion, so simply adding a check into AST validation pass won't be enough, the checking needs to be done during expansion, like for macro paths (
rust/src/librustc_resolve/macros.rs
Line 391 in 3cf2c04
cc @jseyfried
The text was updated successfully, but these errors were encountered: