Skip to content

Commit 681b9aa

Browse files
committed
Rename TyCtxt::struct_lint_node as TyCtxt::node_lint.
1 parent 36e6514 commit 681b9aa

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

compiler/rustc_lint/src/context.rs

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,7 +2117,7 @@ impl<'tcx> TyCtxt<'tcx> {
21172117
id: HirId,
21182118
decorator: impl for<'a> DecorateLint<'a, ()>,
21192119
) {
2120-
self.struct_lint_node(lint, id, decorator.msg(), |diag| {
2120+
self.node_lint(lint, id, decorator.msg(), |diag| {
21212121
decorator.decorate_lint(diag);
21222122
})
21232123
}
@@ -2127,7 +2127,7 @@ impl<'tcx> TyCtxt<'tcx> {
21272127
/// [`struct_lint_level`]: rustc_middle::lint::struct_lint_level#decorate-signature
21282128
#[rustc_lint_diagnostics]
21292129
#[track_caller]
2130-
pub fn struct_lint_node(
2130+
pub fn node_lint(
21312131
self,
21322132
lint: &'static Lint,
21332133
id: HirId,

src/librustdoc/core.rs

Lines changed: 1 addition & 1 deletion
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)