Module clippy_utils::diagnostics
source · Expand description
Clippy wrappers around rustc’s diagnostic functions.
These functions are used by the INTERNAL_METADATA_COLLECTOR lint to collect the corresponding
lint applicability. Please make sure that you update the LINT_EMISSION_FUNCTIONS variable in
clippy_lints::utils::internal_lints::metadata_collector when a new function is added
or renamed.
Thank you!
~The INTERNAL_METADATA_COLLECTOR lint
Functions
- Create a suggestion made from several
span → replacement. - Create a suggestion made from several
span → replacement. - Emit a basic lint message with a
msgand aspan. - Same as
span_lintbut with an extrahelpmessage. - Like
span_lintbut with anotesection instead of ahelpmessage. - Add a span lint with a suggestion on how to fix it.
- Like
span_lintbut allows to add notes, help and suggestions using a closure.