Skip to content

Commit 0f3dc6c

Browse files
committed
Rename TyCtxt::emit_lint as TyCtxt::emit_node_lint.
1 parent 40636b9 commit 0f3dc6c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_middle/src/lint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ pub fn explain_lint_level_source(
249249
/// for example:
250250
/// - [`TyCtxt::emit_spanned_lint`]
251251
/// - [`TyCtxt::node_span_lint`]
252-
/// - [`TyCtxt::emit_lint`]
252+
/// - [`TyCtxt::emit_node_lint`]
253253
/// - [`TyCtxt::node_lint`]
254254
/// - `LintContext::opt_span_lint`
255255
///

compiler/rustc_middle/src/ty/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2090,7 +2090,7 @@ impl<'tcx> TyCtxt<'tcx> {
20902090
/// Emit a lint from a lint struct (some type that implements `DecorateLint`, typically
20912091
/// generated by `#[derive(LintDiagnostic)]`).
20922092
#[track_caller]
2093-
pub fn emit_lint(
2093+
pub fn emit_node_lint(
20942094
self,
20952095
lint: &'static Lint,
20962096
id: HirId,

0 commit comments

Comments
 (0)