-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Issues: rust-lang/rust-clippy
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Author
Label
Projects
Milestones
Assignee
Sort
Issues list
redundant_pattern_matching
: if let Err(_) = ... else
and if ....is_err()
are not the same
C-bug
#14113
opened Jan 30, 2025 by
KizzyCode
redundant_pattern_matching: no Category: Clippy is not doing the correct thing
I-false-positive
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
is_none()
for raw pointer
C-bug
#13902
by matthiaskrgr
was closed Dec 30, 2024
redundant_pattern_matching failes to check whether contained value are used.
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
#12329
opened Feb 22, 2024 by
S-K-Tiger
Invalid warning on Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
redundant_pattern_matching
C-bug
#11174
by nurmohammed840
was closed Jul 18, 2023
redundant_pattern_matching does not check for match with single arm
C-bug
Category: Clippy is not doing the correct thing
#10726
by disco07
was closed May 31, 2023
clippy::redundant_pattern_matching
does not check for matches!()
C-bug
#10694
by LikeLakers2
was closed Jun 4, 2023
generators: redundant_pattern_matching triggers on yield
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
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
#10451
opened Mar 5, 2023 by
matthiaskrgr
Don't use PartialEq to check if an Option is None
A-lint
Area: New lints
good-first-issue
These issues are a good way to get started with Clippy
#9275
by lukaslueg
was closed Aug 9, 2022
Suggest replacing pattern matching with Category: Enhancement of lints, like adding more cases or adding help messages
map
or map_err
C-enhancement
#8436
opened Feb 15, 2022 by
lkts
cargo clippy --fix fails fixing redundant_pattern_matching
C-bug
Category: Clippy is not doing the correct thing
#7921
by Yuri6037
was closed Nov 9, 2021
cargo clippy --fix fail with large code base
C-bug
Category: Clippy is not doing the correct thing
#7919
by Yuri6037
was closed Nov 2, 2021
Most commonly ignored lints on crates.io
A-category
Area: Categorization of lints
C-tracking-issue
Category: Tracking Issue
S-needs-discussion
Status: Needs further discussion before merging or work can be started
#7666
by dtolnay
was closed Oct 9, 2022
Suggest changing Area: New lints
if let Some(3) = x
to if x == Some(3)
A-lint
#7554
by adamchalmers
was closed Aug 11, 2021
Multiple if-let arms can be replaced with match
A-lint
Area: New lints
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
#7481
opened Jul 23, 2021 by
In-line
Warning on Category: Enhancement of lints, like adding more cases or adding help messages
good-first-issue
These issues are a good way to get started with Clippy
matches!
with rule redundant_pattern_matching
?
C-enhancement
#6459
by fanatid
was closed Dec 27, 2023
match_like_matches_macro lint could be improved a bit more
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
good-first-issue
These issues are a good way to get started with Clippy
#6186
by GuillaumeGomez
was closed Oct 27, 2020
panicked at 'index out of bounds: the len is 1 but the index is 1', src/tools/clippy/clippy_lints/src/repeat_once.rs:44:93
#6147
by sdroege
was closed Oct 9, 2020
redundant_pattern_matching:
Option
and Result
methods stabilized as const
#6067
by CDirkx
was closed Sep 21, 2020
redundant_pattern_matching shouldn't complain about macro generated redundant patterns
C-bug
Category: Clippy is not doing the correct thing
#6065
by KamilaBorowska
was closed Sep 22, 2020
Some(_) is not equivalent to is_some()
A-documentation
Area: Adding or improving documentation
C-bug
Category: Clippy is not doing the correct thing
E-hard
Call for participation: This a hard problem and requires more experience or effort to work on
good-first-issue
These issues are a good way to get started with Clippy
#5746
by hayashi-stl
was closed Apr 16, 2021
redundant_pattern_matching suggests the use of non-const fn in const fn
C-bug
Category: Clippy is not doing the correct thing
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
#5697
by yvt
was closed Jun 23, 2020
FP redundant_pattern_matching: try! macro
C-bug
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
L-suggestion
Lint: Improving, adding or fixing lint suggestions
#5504
by matthiaskrgr
was closed Apr 25, 2020
Suggest
Option::is_some
for while let Some(_) = iterator.next()
#5462
by Luro02
was closed Apr 17, 2020
FN redundant_pattern_matching: reference to LHS op: &None
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
good-first-issue
These issues are a good way to get started with Clippy
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
L-style
Lint: Belongs in the style lint group
#5396
by matthiaskrgr
was closed Mar 28, 2021
Previous Next
ProTip!
Type g i on any issue or pull request to go back to the issue listing page.