Trait clippy_utils::sugg::DiagnosticExt
source · pub trait DiagnosticExt<T: LintContext> {
// Required methods
fn suggest_item_with_attr<D: Display + ?Sized>(
&mut self,
cx: &T,
item: Span,
msg: &str,
attr: &D,
applicability: Applicability
);
fn suggest_prepend_item(
&mut self,
cx: &T,
item: Span,
msg: &str,
new_item: &str,
applicability: Applicability
);
fn suggest_remove_item(
&mut self,
cx: &T,
item: Span,
msg: &str,
applicability: Applicability
);
}
Expand description
Convenience extension trait for Diagnostic
.