You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a lint pass that warns about unknown annotations. #6884
The compiler does not warn about annotations it does not recognize. I recently noticed some code annotated with several instances of #[incline]. Those annotations had been sitting there unnoticed for over a year. It would be nice if the compiler would emit a warning.
As discussed on IRC, one way this might be implemented would be marking annotations as 'used' when they are used, and then do a pass very late in compilation that checks for unused annotations. This would free the lint pass from having a list of valid annotations and their semantics.
(I think we agreed informally that such a lint pass might be useful to some, but that it would be turned off (allow) by default; I think this aligns with the discussion on #7318.)
Activity
catamorphism commentedon Jun 1, 2013
+1
bblum commentedon Jul 29, 2013
Related #2976. Nominating feature-complete.
catamorphism commentedon Aug 29, 2013
Related to #7318
catamorphism commentedon Aug 29, 2013
Just a bug, more of a developer issue
pnkfelix commentedon Aug 29, 2013
(I think we agreed informally that such a lint pass might be useful to some, but that it would be turned off (
allow) by default; I think this aligns with the discussion on #7318.)klutzy commentedon Dec 7, 2013
This is fixed by #10316.
alexcrichton commentedon Dec 7, 2013
hurray!
Auto merge of rust-lang#6884 - matthiaskrgr:lintcheck_crate, r=Manish…