diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-16 14:40:39 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-23 08:08:25 +1100 |
| commit | 1881bfaa2b4e1f006db30aa408aaf360557ab2e9 (patch) | |
| tree | f0514fc30797f11b7a16c9de1aa5c12d9a8bcfca /compiler/rustc_lint/src/methods.rs | |
| parent | c915e90f7ee79005b45fb4428784c85ac1116726 (diff) | |
| download | rust-1881bfaa2b4e1f006db30aa408aaf360557ab2e9.tar.gz rust-1881bfaa2b4e1f006db30aa408aaf360557ab2e9.zip | |
Rename `LintContext::emit_spanned_lint` as `LintContext::emit_span_lint`.
Diffstat (limited to 'compiler/rustc_lint/src/methods.rs')
| -rw-r--r-- | compiler/rustc_lint/src/methods.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/methods.rs b/compiler/rustc_lint/src/methods.rs index 5b63b19c53c..9cfdaf0ce2f 100644 --- a/compiler/rustc_lint/src/methods.rs +++ b/compiler/rustc_lint/src/methods.rs @@ -57,7 +57,7 @@ fn lint_cstring_as_ptr( if cx.tcx.is_diagnostic_item(sym::Result, def.did()) { if let ty::Adt(adt, _) = args.type_at(0).kind() { if cx.tcx.is_diagnostic_item(sym::cstring_type, adt.did()) { - cx.emit_spanned_lint( + cx.emit_span_lint( TEMPORARY_CSTRING_AS_PTR, as_ptr_span, CStringPtr { as_ptr: as_ptr_span, unwrap: unwrap.span }, |
