about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-01-16 16:27:02 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-01-23 08:09:05 +1100
commite164cf30f8f96551cedece4ed199d7ecb5832648 (patch)
tree0dd488e397afda47649c87f00686a58a96e06122 /compiler/rustc_monomorphize/src
parent82ca070c1680004da7d25abcc1d3d793d00abf06 (diff)
downloadrust-e164cf30f8f96551cedece4ed199d7ecb5832648.tar.gz
rust-e164cf30f8f96551cedece4ed199d7ecb5832648.zip
Rename `TyCtxt::emit_spanned_lint` as `TyCtxt::emit_node_span_lint`.
Diffstat (limited to 'compiler/rustc_monomorphize/src')
-rw-r--r--compiler/rustc_monomorphize/src/collector.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs
index 20e70f87b75..3e090661414 100644
--- a/compiler/rustc_monomorphize/src/collector.rs
+++ b/compiler/rustc_monomorphize/src/collector.rs
@@ -714,7 +714,7 @@ impl<'a, 'tcx> MirUsedCollector<'a, 'tcx> {
             // but correct span? This would make the lint at least accept crate-level lint attributes.
             return;
         };
-        self.tcx.emit_spanned_lint(
+        self.tcx.emit_node_span_lint(
             LARGE_ASSIGNMENTS,
             lint_root,
             span,