rustc-dev-guide icon indicating copy to clipboard operation
rustc-dev-guide copied to clipboard

Document inert vs active attributes

Open Aaron1011 opened this issue 4 years ago • 5 comments

This PR adds a subsection to the 'Syntax and AST' section describing inert vs active attributes.

For consistency, I've also updated the '#[test] implementation' page to stop referring to `#[test]' as a 'built in' attribute, since that has a specific meaning defined on this page.

Aaron1011 avatar Apr 16 '21 21:04 Aaron1011

cfg and cfg_attr are probably worth mentioning as third category because they are both built-in (in the sense that they don't go through name resolution) and active (expanded directly by the compiler).

petrochenkov avatar Apr 17 '21 06:04 petrochenkov

@Aaron1011 will you be able to work on this to get it over the finish line? I'd love to see it merged.

rylev avatar Jul 04 '21 18:07 rylev

@Aaron1011 I'm not sure if this is still up-to-date, could you check? It'd also be great if you could address review comments.

JohnTitor avatar Nov 20 '22 04:11 JohnTitor

I'm not sure what's the current status of this PR, but I guess it may be better to merge it and continue working on it on master. Opinions?.

spastorino avatar Feb 15 '23 14:02 spastorino

I'm not sure what's the current status of this PR, but I guess it may be better to merge it and continue working on it on master. Opinions?.

Any comment about this :point_up: ?

spastorino avatar Oct 26 '23 14:10 spastorino