about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-23 00:06:57 +0000
committerbors <bors@rust-lang.org>2024-01-23 00:06:57 +0000
commit0011fac90d2846ea3c04506238ff6e4ed3ce0efe (patch)
tree790800883bc3195caaaa042ec32f3c0d2f6420ef /compiler/rustc_codegen_ssa/src
parentd6b151fc77e213bf637db0f12c1965ace3ffe255 (diff)
parent15a4c4fc6f1bda15bbc6c40395ff709d1b7fd166 (diff)
downloadrust-0011fac90d2846ea3c04506238ff6e4ed3ce0efe.tar.gz
rust-0011fac90d2846ea3c04506238ff6e4ed3ce0efe.zip
Auto merge of #120017 - nnethercote:lint-api, r=oli-obk
Fix naming in the lint API

Methods for emit lints are named very inconsistently. This PR fixes that up.

r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/codegen_attrs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/codegen_attrs.rs b/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
index 299d6f98420..cca239a43b3 100644
--- a/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
+++ b/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
@@ -563,7 +563,7 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
         if codegen_fn_attrs.inline == InlineAttr::Always {
             if let (Some(no_sanitize_span), Some(inline_span)) = (no_sanitize_span, inline_span) {
                 let hir_id = tcx.local_def_id_to_hir_id(did);
-                tcx.struct_span_lint_hir(
+                tcx.node_span_lint(
                     lint::builtin::INLINE_NO_SANITIZE,
                     hir_id,
                     no_sanitize_span,