about Applicability #9994
Unanswered
Andres-Nju
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The applicability, on Clippy's lint list, gets extracted from the source code. Occasionally, it's unable to determine the Applicability, in that case "unresolved" will be displayed.
Yes, this is exactly what the applicability says. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I got 2 questions:
I saw the applicability of some lints is "unresolved", and I clicked the weblink provided but couldn't find such variant in the official doc.
There are only these:
pub enum Applicability {
MachineApplicable,
MaybeIncorrect,
HasPlaceholders,
Unspecified,
}
So I wonder what does this "Applicability" mean? or if it is a little bit different from those of the lints which are provided by rustc?
I also wonder whether the applicability is related to the capability of fixing codes automatically with the lint's suggestions?
For example, applicability "unresolved" means this kind of smell/bad code cannot be fixed automatically by using "cargo clippy --fix", or it just means the process of fixing can still be done, but the substitution codes still have problems?
Beta Was this translation helpful? Give feedback.
All reactions