3
Use `AttrVec` for `Arm`, `FieldDef`, and `Variant` by JohnTitor · Pull Request #...
source link: https://github.com/rust-lang/rust/pull/86385
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Uses AttrVec
for Arm
, FieldDef
, and Variant
, i.e., where the size of the vector can be empty often.
Skips Crate
and Item
because I think they may have the attributes on common cases and need more work outside of rustc_ast
(e.g. rustc_expand needs a lot of tweaks). But if it's reasonable to change, I'm happy to do so.
Fixes #77662
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK