-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
use_self is triggered inside derived code #6818
Labels
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
T-macros
Type: Issues with macros and macro expansion
Comments
imp
added
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
labels
Mar 1, 2021
Is it possible that this is a regression? I haven't seen this before while getting proper warnings for this lint, but it popped up today for all my serde derives. Last I checked was some time ago though. |
having the same issue in gitui where I am supposed to name my struct itself
and yeah this is definitely a regression. this did not happen before |
camsteffen
added
the
good-first-issue
These issues are a good way to get started with Clippy
label
Mar 2, 2021
anthraxx
added a commit
to anthraxx/git-smash
that referenced
this issue
Mar 10, 2021
Fixed in rust-lang/rust-clippy#6818 but requires a new clippy release.
anthraxx
added a commit
to anthraxx/git-smash
that referenced
this issue
Mar 10, 2021
Fixed in rust-lang/rust-clippy#6818 but requires a new clippy release.
anthraxx
added a commit
to anthraxx/git-smash
that referenced
this issue
Mar 10, 2021
Fixed in rust-lang/rust-clippy#6818 but requires a new clippy release.
anthraxx
added a commit
to anthraxx/git-smash
that referenced
this issue
Mar 10, 2021
Fixed in rust-lang/rust-clippy#6818 but requires a new clippy release.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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
T-macros
Type: Issues with macros and macro expansion
It looks like
use_self
is triggered inside derived macro-generated code. While derived macro authors may handle that on their part, it is still not feasible to expect that to happen overnight. Right now everyone wishing to use this lint inside their own code is affected.Lint name: use_self
I tried this code:
I expected to see this happen: clean cargo clippy run
Instead, this happened:
Meta
cargo clippy -V
: clippy 0.1.52 (e37a13c 2021-02-28)rustc -Vv
:rustc 1.52.0-nightly (e37a13c 2021-02-28)
binary: rustc
commit-hash: e37a13c
commit-date: 2021-02-28
host: x86_64-unknown-linux-gnu
release: 1.52.0-nightly
LLVM version: 11.0.1
The text was updated successfully, but these errors were encountered: