New attribute parsing infrastructure by jdonszelmann · Pull Request #135726 · rust-lang/rust (original) (raw)

Another step in the plan outlined in #131229

introduces infrastructure for structured parsers for attributes, as well as converting a couple of complex attributes to have such structured parsers.

This PR may prove too large to review. I left some of my own comments to guide it a little. Some general notes:

In general, a lot of the additions here are comments. I've found it very important to document new things in the 2nd commit well so other people can start using it.

Closes #132391
Closes #136717

fmease, jieyouxu, Noratrieb, xFrednet, liesnikov, Kobzol, chenyukang, ZuseZ4, Enselic, its-the-shrimp, and P1n3appl3 reacted with heart emoji