Rename LintContext::emit_spanned_lint as LintContext::emit_span_lint.

This commit is contained in:
Nicholas Nethercote
2024-01-16 14:40:39 +11:00
parent c915e90f7e
commit 1881bfaa2b
27 changed files with 112 additions and 128 deletions

View File

@@ -132,7 +132,7 @@ impl<'tcx> LateLintPass<'tcx> for ArrayIntoIter {
} else {
None
};
cx.emit_spanned_lint(
cx.emit_span_lint(
ARRAY_INTO_ITER,
call.ident.span,
ArrayIntoIterDiag { target, suggestion: call.ident.span, sub },