diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-01-02 23:32:40 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-01-06 01:25:20 +0300 |
| commit | e10a05dff3f278f89dc4bce7fb9cbafc40767d49 (patch) | |
| tree | 1925651c1734f0fa7a7aaf38508021fe1ad58b3c /clippy_lints/src/implicit_hasher.rs | |
| parent | d2012259ca219d92b94b724767919bb8c17c3013 (diff) | |
| download | rust-e10a05dff3f278f89dc4bce7fb9cbafc40767d49.tar.gz rust-e10a05dff3f278f89dc4bce7fb9cbafc40767d49.zip | |
rustc_span: Optimize syntax context comparisons
Including comparisons with root context
Diffstat (limited to 'clippy_lints/src/implicit_hasher.rs')
| -rw-r--r-- | clippy_lints/src/implicit_hasher.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/implicit_hasher.rs b/clippy_lints/src/implicit_hasher.rs index 43eb6a9b838..788fe828727 100644 --- a/clippy_lints/src/implicit_hasher.rs +++ b/clippy_lints/src/implicit_hasher.rs @@ -118,7 +118,7 @@ impl<'tcx> LateLintPass<'tcx> for ImplicitHasher { vis.visit_ty(impl_.self_ty); for target in &vis.found { - if item.span.ctxt() != target.span().ctxt() { + if !item.span.eq_ctxt(target.span()) { return; } |
