We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TyCtxt::emit_lint
TyCtxt::emit_node_lint
1 parent 40636b9 commit 0f3dc6cCopy full SHA for 0f3dc6c
compiler/rustc_middle/src/lint.rs
@@ -249,7 +249,7 @@ pub fn explain_lint_level_source(
249
/// for example:
250
/// - [`TyCtxt::emit_spanned_lint`]
251
/// - [`TyCtxt::node_span_lint`]
252
-/// - [`TyCtxt::emit_lint`]
+/// - [`TyCtxt::emit_node_lint`]
253
/// - [`TyCtxt::node_lint`]
254
/// - `LintContext::opt_span_lint`
255
///
compiler/rustc_middle/src/ty/context.rs
@@ -2090,7 +2090,7 @@ impl<'tcx> TyCtxt<'tcx> {
2090
/// Emit a lint from a lint struct (some type that implements `DecorateLint`, typically
2091
/// generated by `#[derive(LintDiagnostic)]`).
2092
#[track_caller]
2093
- pub fn emit_lint(
+ pub fn emit_node_lint(
2094
self,
2095
lint: &'static Lint,
2096
id: HirId,
0 commit comments