Skip to content

Commit a5a619d

Browse files
committed
Rename TyCtxt::struct_lint_node as TyCtxt::node_lint.
1 parent af3e342 commit a5a619d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

compiler/rustc_lint/src/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ impl<'tcx> LintContext for LateContext<'tcx> {
677677

678678
match span {
679679
Some(s) => self.tcx.struct_span_lint_hir(lint, hir_id, s, msg, decorate),
680-
None => self.tcx.struct_lint_node(lint, hir_id, msg, decorate),
680+
None => self.tcx.node_lint(lint, hir_id, msg, decorate),
681681
}
682682
}
683683

compiler/rustc_middle/src/lint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ pub fn explain_lint_level_source(
250250
/// - [`TyCtxt::emit_spanned_lint`]
251251
/// - [`TyCtxt::struct_span_lint_hir`]
252252
/// - [`TyCtxt::emit_lint`]
253-
/// - [`TyCtxt::struct_lint_node`]
253+
/// - [`TyCtxt::node_lint`]
254254
/// - `LintContext::opt_span_lint`
255255
///
256256
/// ## `decorate`

compiler/rustc_middle/src/ty/context.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2096,7 +2096,7 @@ impl<'tcx> TyCtxt<'tcx> {
20962096
id: HirId,
20972097
decorator: impl for<'a> DecorateLint<'a, ()>,
20982098
) {
2099-
self.struct_lint_node(lint, id, decorator.msg(), |diag| {
2099+
self.node_lint(lint, id, decorator.msg(), |diag| {
21002100
decorator.decorate_lint(diag);
21012101
})
21022102
}
@@ -2106,7 +2106,7 @@ impl<'tcx> TyCtxt<'tcx> {
21062106
/// [`struct_lint_level`]: rustc_middle::lint::struct_lint_level#decorate-signature
21072107
#[rustc_lint_diagnostics]
21082108
#[track_caller]
2109-
pub fn struct_lint_node(
2109+
pub fn node_lint(
21102110
self,
21112111
lint: &'static Lint,
21122112
id: HirId,

src/librustdoc/core.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ pub(crate) fn run_global_ctxt(
377377
{}/rustdoc/how-to-write-documentation.html",
378378
crate::DOC_RUST_LANG_ORG_CHANNEL
379379
);
380-
tcx.struct_lint_node(
380+
tcx.node_lint(
381381
crate::lint::MISSING_CRATE_LEVEL_DOCS,
382382
DocContext::as_local_hir_id(tcx, krate.module.item_id).unwrap(),
383383
"no documentation found for this crate's top-level module",

0 commit comments

Comments
 (0)