Apply lint attrs to individual "use" declarations

Fixes #10534