Function clippy_lints::utils::span_lint_and_then [] [src]

pub fn span_lint_and_then<'a, 'tcx: 'a, T: LintContext<'tcx>, F>(
    cx: &'a T,
    lint: &'static Lint,
    sp: Span,
    msg: &str,
    f: F
) where
    F: for<'b> FnOnce(&mut DiagnosticBuilder<'b>),