about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/traits.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-01-16 14:40:39 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-01-23 08:08:25 +1100
commit1881bfaa2b4e1f006db30aa408aaf360557ab2e9 (patch)
treef0514fc30797f11b7a16c9de1aa5c12d9a8bcfca /compiler/rustc_lint/src/traits.rs
parentc915e90f7ee79005b45fb4428784c85ac1116726 (diff)
downloadrust-1881bfaa2b4e1f006db30aa408aaf360557ab2e9.tar.gz
rust-1881bfaa2b4e1f006db30aa408aaf360557ab2e9.zip
Rename `LintContext::emit_spanned_lint` as `LintContext::emit_span_lint`.
Diffstat (limited to 'compiler/rustc_lint/src/traits.rs')
-rw-r--r--compiler/rustc_lint/src/traits.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/traits.rs b/compiler/rustc_lint/src/traits.rs
index e812493b3dd..789f154eac5 100644
--- a/compiler/rustc_lint/src/traits.rs
+++ b/compiler/rustc_lint/src/traits.rs
@@ -101,7 +101,7 @@ impl<'tcx> LateLintPass<'tcx> for DropTraitConstraints {
                     continue;
                 }
                 let Some(def_id) = cx.tcx.get_diagnostic_item(sym::needs_drop) else { return };
-                cx.emit_spanned_lint(
+                cx.emit_span_lint(
                     DROP_BOUNDS,
                     span,
                     DropTraitConstraintsDiag { predicate, tcx: cx.tcx, def_id },
@@ -116,7 +116,7 @@ impl<'tcx> LateLintPass<'tcx> for DropTraitConstraints {
             let def_id = bound.trait_ref.trait_def_id();
             if cx.tcx.lang_items().drop_trait() == def_id {
                 let Some(def_id) = cx.tcx.get_diagnostic_item(sym::needs_drop) else { return };
-                cx.emit_spanned_lint(DYN_DROP, bound.span, DropGlue { tcx: cx.tcx, def_id });
+                cx.emit_span_lint(DYN_DROP, bound.span, DropGlue { tcx: cx.tcx, def_id });
             }
         }
     }