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 redundant_pattern_matching
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
181
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
redundant_pattern_matching
is:issue redundant_pattern_matching
Search
Labels
Milestones
New issue
Search results
Open
Closed
binary operation <code>!=</code> cannot be applied to type <code>tokio::sync::MutexGuard<'_, std::option::Option<std::net::IpAddr>></code>
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Status: Closed (completed).
#15180
In rust-lang/rust-clippy;
·
by
RazeLighter777
was closed
on Jul 9, 2025
<code>redundant_pattern_matching</code> span is not wide enough, misses <code>)</code>, causes syntax error
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Status: Open.
#14989
In rust-lang/rust-clippy;
·
matthiaskrgr
opened
on Jun 6, 2025
<code>redundant_pattern_matching</code>: <code>if let Err(_) = ... else</code> and <code>if ....is_err()</code> are not the same
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).
#14113
In rust-lang/rust-clippy;
·
by
KizzyCode
was closed
on Sep 13, 2025
redundant_pattern_matching: no <code>is_none()</code> for raw pointer
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
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Status: Closed (completed).
#13902
In rust-lang/rust-clippy;
·
by
matthiaskrgr
was closed
on Dec 30, 2024
redundant_pattern_matching failes to check whether contained value are used.
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Issue: The lint should have been triggered on code, but wasn't
Status: Open.
#12329
In rust-lang/rust-clippy;
·
S-K-Tiger
opened
on Feb 22, 2024
Invalid warning on <code>redundant_pattern_matching</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).
#11174
In rust-lang/rust-clippy;
·
by
nurmohammed840
was closed
on Jul 18, 2023
redundant_pattern_matching does not check for match with single arm
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
Status: Closed (completed).
#10726
In rust-lang/rust-clippy;
·
by
disco07
was closed
on May 31, 2023
<code>clippy::redundant_pattern_matching</code> does not check for <code>matches!()</code>
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Issue: The lint should have been triggered on code, but wasn't
Status: Closed (completed).
#10694
In rust-lang/rust-clippy;
·
by
LikeLakers2
was closed
on Jun 4, 2023
generators: redundant_pattern_matching triggers on yield
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
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Status: Open.
#10451
In rust-lang/rust-clippy;
·
matthiaskrgr
opened
on Mar 5, 2023
Don't use PartialEq to check if an Option is None
A-lint
Area: New lints
Area: New lints
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
Status: Closed (completed).
#9275
In rust-lang/rust-clippy;
·
by
lukaslueg
was closed
on Aug 9, 2022
Suggest replacing pattern matching with <code>map</code> or <code>map_err</code>
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
Category: Enhancement of lints, like adding more cases or adding help messages
Status: Open.
#8436
In rust-lang/rust-clippy;
·
lkts
opened
on Feb 15, 2022
cargo clippy --fix fails fixing redundant_pattern_matching
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
Status: Closed (completed).
#7921
In rust-lang/rust-clippy;
·
by
Yuri6037
was closed
on Nov 9, 2021
You can’t perform that action at this time.