-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Failed to fix 'passing a unit value to a function'
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
#14857
opened May 20, 2025 by
nicktrandafil
Clippy gives unit_arg warning when using Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
black_box
C-bug
#12707
by xobs
was closed Apr 25, 2024
Clippy removes variable bindings even if it's later being used.
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
#12594
by arifd
was closed Apr 2, 2024
clippy::option_if_let_else
suggestion doesn't compile when passing a matched reference to a function
C-bug
#10729
by Kage-Yami
was closed Jun 28, 2023
unit_arg breaks code
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
#10016
opened Dec 1, 2022 by
matthiaskrgr
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
Possible unit_arg false positive when passing Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Default::default()
as function parameter resolving to unit value
C-bug
#7341
opened Jun 10, 2021 by
Enet4
Tracking Issue for refactoring Category: Tracking Issue
types.rs
C-tracking-issue
#6724
by Y-Nak
was closed Mar 31, 2021
4 tasks done
False positive unit-arg when deriving proptest::arbitrary::Arbitrary
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
#6594
by turion
was closed Aug 8, 2022
False positive with unit_arg when returning Ok(function)
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
S-needs-discussion
Status: Needs further discussion before merging or work can be started
#6521
opened Dec 30, 2020 by
peterjoel
unit_arg lint for Rocket handlers returning unit causes a warning
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
S-blocked
Status: marked as blocked ❌ on something else such as an RFC or other implementation work
T-macros
Type: Issues with macros and macro expansion
#6514
by LunaBorowska
was closed Aug 8, 2022
False positive for unit_arg when forwarding arguments
C-bug
Category: Clippy is not doing the correct thing
good first issue
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
#6447
by csnover
was closed Feb 25, 2021
false positives and crazy suggestsiong for unit_arg lint
C-bug
Category: Clippy is not doing the correct thing
S-needs-discussion
Status: Needs further discussion before merging or work can be started
#6015
by pm100
was closed Sep 10, 2020
unit_arg suggestions don't make sense when run against Option::map_or(unit_expr, ...)
C-bug
Category: Clippy is not doing the correct thing
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
L-suggestion
Lint: Improving, adding or fixing lint suggestions
#5823
by Arnavion
was closed Sep 10, 2020
option_if_let_else suggests map_or instead of map_or_else even if else branch contains a function call
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.
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
L-nursery
Lint: Currently in the nursery group
#5821
opened Jul 19, 2020 by
Arnavion
Most commonly ignored lints
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
#5418
by dtolnay
was closed Sep 13, 2021
[cargo fix] Area: Adding or improving documentation
good first issue
These issues are a good way to get started with Clippy
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
unit_arg
removes calls to functions with side-effects
A-documentation
#4741
by soruh
was closed May 31, 2020
catch-22 with try block, clippy::unit_arg and clippy::unused_unit
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
#3759
by DenialAdams
was closed Jul 13, 2021
Tracking Issue: Fixing broken lint suggestions
C-tracking-issue
Category: Tracking Issue
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
#3630
by phansch
was closed Sep 25, 2019
38 of 39 tasks
Conflicting suggestions for unit_arg lint between clippy and (nightly) rustc
C-bug
Category: Clippy is not doing the correct thing
#2945
by vitalyd
was closed Jan 29, 2019
ProTip!
Follow long discussions with comments:>50.