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/reference_casting.rs | |
| parent | c915e90f7ee79005b45fb4428784c85ac1116726 (diff) | |
Rename `LintContext::emit_spanned_lint` as `LintContext::emit_span_lint`.
Diffstat (limited to 'compiler/rustc_lint/src/reference_casting.rs')
| -rw-r--r-- | compiler/rustc_lint/src/reference_casting.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/reference_casting.rs b/compiler/rustc_lint/src/reference_casting.rs index 96290288f07..9e6cca85317 100644 --- a/compiler/rustc_lint/src/reference_casting.rs +++ b/compiler/rustc_lint/src/reference_casting.rs @@ -47,7 +47,7 @@ impl<'tcx> LateLintPass<'tcx> for InvalidReferenceCasting { let orig_cast = if init.span != e.span { Some(init.span) } else { None }; let ty_has_interior_mutability = ty_has_interior_mutability.then_some(()); - cx.emit_spanned_lint( + cx.emit_span_lint( INVALID_REFERENCE_CASTING, expr.span, if pat == PatternKind::Assign { |
