From cfdea760f5ca36fdd04c8f18f3dac0bef66055cc Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Tue, 16 Jan 2024 16:14:33 +1100 Subject: Rename `TyCtxt::struct_span_lint_hir` as `TyCtxt::node_span_lint`. --- compiler/rustc_lint/src/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_lint') diff --git a/compiler/rustc_lint/src/context.rs b/compiler/rustc_lint/src/context.rs index 5c34b763e5d..163507c1d50 100644 --- a/compiler/rustc_lint/src/context.rs +++ b/compiler/rustc_lint/src/context.rs @@ -676,7 +676,7 @@ impl<'tcx> LintContext for LateContext<'tcx> { let hir_id = self.last_node_with_lint_attrs; match span { - Some(s) => self.tcx.struct_span_lint_hir(lint, hir_id, s, msg, decorate), + Some(s) => self.tcx.node_span_lint(lint, hir_id, s, msg, decorate), None => self.tcx.node_lint(lint, hir_id, msg, decorate), } } -- cgit 1.4.1-3-g733a5