-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
help wantedContributions especially welcomeContributions especially welcomeinternalAn internal refactor or improvementAn internal refactor or improvement
Description
Part of #4181 and depends on #4182
- Add a new
Applicabilityenum infix.rssimilar to Rome's or Clippy'sApplicabilityenums with three variants:Safe(orAutomatic,Always,MachineApplicable?)MaybeIncorrectUnspecified
- Add the
applicabilityfield toFix - Add the new
safeandsafe_editsconstructor functions (identical tounspecifiedandunspecified_edits) - Add the new
maybe_incorrectandmaybe_incorrect_editsconstructor functions (identical tounspecifiedandunspecified_edits) - Mark
unspecifiedandunspecified_editsasdeprecated(new lints should use eithersafe_*ormaybe_incorrect_*). Addallow(deprecated)` at the call-sites. - Change the
Diffimplementation to writeSuggested FixforMaybeIncorrectandUnspecified, andSafe fixforApplicability::Safe.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedContributions especially welcomeContributions especially welcomeinternalAn internal refactor or improvementAn internal refactor or improvement