Skip to content
Navigation Menu
Toggle navigation
Sign in
Appearance settings
Platform
GitHub Copilot
Write better code with AI
GitHub Spark
New
Build and deploy intelligent apps
GitHub Models
New
Manage and compare prompts
GitHub Advanced Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
Why GitHub
Documentation
GitHub Skills
Blog
Integrations
GitHub Marketplace
MCP Registry
View all features
Solutions
By company size
Enterprises
Small and medium teams
Startups
Nonprofits
By use case
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
By industry
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
Topics
AI
DevOps
Security
Software Development
View all
Explore
Learning Pathways
Events & Webinars
Ebooks & Whitepapers
Customer Stories
Partners
Executive Insights
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Enterprise
Enterprise platform
AI-powered developer platform
Available add-ons
GitHub Advanced Security
Enterprise-grade security features
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
is:issue useless_attribute
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Appearance settings
Resetting focus
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 }}
rust-lang
/
rust-clippy
Public
Notifications
You must be signed in to change notification settings
Fork
1.8k
Star
12.5k
Code
Issues
2.3k
Pull requests
182
Discussions
Actions
Projects
0
Wiki
Security
Uh oh!
There was an error while loading.
Please reload this page
.
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security
Insights
Most commonly ignored lints on crates.io
#7666 ·
dtolnay
opened
on Sep 13, 2021
23
Issues
Search Issues
is
:
issue
useless_attribute
is:issue useless_attribute
Search
Labels
Milestones
New issue
Search results
Open
Closed
<code>useless_attribute</code> does not understand <code>deprecated_in_future</code> properly
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#15636
In rust-lang/rust-clippy;
·
by
cyrgani
was closed
on Sep 11, 2025
False Positive <code>useless_attribute</code> with <code>#[expect(redundant_imports)]</code>
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#15316
In rust-lang/rust-clippy;
·
by
LambdaAlpha
was closed
on Jul 21, 2025
<code>useless_attribute</code> incorrectly triggers for unknown tool attributes on <code>use</code>
Status: Closed (completed).
#13764
In rust-lang/rust-clippy;
·
by
lcnr
was closed
on Dec 17, 2024
needless_pub_self lint when necessary for crate macros
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Open.
#12808
In rust-lang/rust-clippy;
·
jgh713
opened
on May 16, 2024
Incorrect <code>clippy::useless_attribute</code> for <code>disallowed_types</code>
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#12753
In rust-lang/rust-clippy;
·
by
9999years
was closed
on May 6, 2024
Incorrect <code>clippy::useless_attribute</code> for <code>unused_braces</code>
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#12223
In rust-lang/rust-clippy;
·
by
ickk
was closed
on Feb 22, 2024
Incorrect <code>clippy::useless_attribute</code> for <code>hidden_glob_reexports</code>
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#11595
In rust-lang/rust-clippy;
·
by
kawadakk
was closed
on May 6, 2024
Incorrect <code>clippy::useless_attribute</code> for <code>ambiguous_glob_reexports</code>
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#10878
In rust-lang/rust-clippy;
·
by
SamRodri
was closed
on May 6, 2024
Unable to disable warning when using derive
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Open.
#10556
In rust-lang/rust-clippy;
·
alexkazik
opened
on Mar 27, 2023
<code>useless_attribute</code> does not permit <code>module_name_repetitions</code> on <code>use</code> statements
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#9401
In rust-lang/rust-clippy;
·
by
lopopolo
was closed
on Nov 20, 2022
useless_attribute with unsafe_rename
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
good first issue
These issues are a good way to get started with Clippy
These issues are a good way to get started with Clippy
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#9197
In rust-lang/rust-clippy;
·
by
TheIronBorn
was closed
on Oct 6, 2022
Is it possible to allow <code>single_component_path_imports</code> for an individual <code>use</code>?
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
Status: Closed (completed).
#8768
In rust-lang/rust-clippy;
·
by
marshallpierce
was closed
on Nov 20, 2022
You can’t perform that action at this time.