fn build_and_emit_lint(
    lint: LintDiagnosticBuilder<'_, ()>,
    local: &Local<'_>,
    init_span: Span,
    msg: &str
)