diff options
| author | dianne <diannes.gm@gmail.com> | 2025-03-14 18:56:15 -0700 |
|---|---|---|
| committer | dianne <diannes.gm@gmail.com> | 2025-04-12 17:42:09 -0700 |
| commit | f35eae780b492cca74d6ada59dc857959d937cd4 (patch) | |
| tree | 988fb0fa3408b0c331a0048757b3fb9ff470d66a /src/tools | |
| parent | 0fe8f3454dbe9dda52a254991347e96bec579a6f (diff) | |
store the kind of pattern adjustments in `pat_adjustments`
This allows us to better distinguish builtin and overloaded implicit dereferences.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/pattern_type_mismatch.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_lints/src/pattern_type_mismatch.rs b/src/tools/clippy/clippy_lints/src/pattern_type_mismatch.rs index 8f1a1ee76c6..96d3f7196c0 100644 --- a/src/tools/clippy/clippy_lints/src/pattern_type_mismatch.rs +++ b/src/tools/clippy/clippy_lints/src/pattern_type_mismatch.rs @@ -179,7 +179,7 @@ fn find_first_mismatch(cx: &LateContext<'_>, pat: &Pat<'_>) -> Option<(Span, Mut }; if let Some(adjustments) = cx.typeck_results().pat_adjustments().get(adjust_pat.hir_id) { if let [first, ..] = **adjustments { - if let ty::Ref(.., mutability) = *first.kind() { + if let ty::Ref(.., mutability) = *first.source.kind() { let level = if p.hir_id == pat.hir_id { Level::Top } else { |
