Rename TyCtxt::emit_lint as TyCtxt::emit_node_lint.

This commit is contained in:
Nicholas Nethercote 2024-01-16 16:17:08 +11:00
parent cfdea760f5
commit 82ca070c16
2 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ pub fn explain_lint_level_source(
/// for example:
/// - [`TyCtxt::emit_spanned_lint`]
/// - [`TyCtxt::node_span_lint`]
/// - [`TyCtxt::emit_lint`]
/// - [`TyCtxt::emit_node_lint`]
/// - [`TyCtxt::node_lint`]
/// - `LintContext::opt_span_lint`
///

View File

@ -2111,7 +2111,7 @@ impl<'tcx> TyCtxt<'tcx> {
/// Emit a lint from a lint struct (some type that implements `DecorateLint`, typically
/// generated by `#[derive(LintDiagnostic)]`).
#[track_caller]
pub fn emit_lint(
pub fn emit_node_lint(
self,
lint: &'static Lint,
id: HirId,