Rename TyCtxt::emit_lint
as TyCtxt::emit_node_lint
.
This commit is contained in:
parent
cfdea760f5
commit
82ca070c16
2 changed files with 2 additions and 2 deletions
|
@ -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`
|
||||
///
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue