about summary refs log tree commit diff
path: root/src/librustdoc
diff options
context:
space:
mode:
authorklensy <klensy@users.noreply.github.com>2024-12-12 19:01:28 +0300
committerklensy <klensy@users.noreply.github.com>2024-12-12 19:01:28 +0300
commit86a4a2786f285c5872d0eb9044386c00f7c12847 (patch)
tree191c451da7654da9826c8b3a2581eff33a5bbf93 /src/librustdoc
parentf33a8c6426074b7ce8d08740e9805fdca96ee150 (diff)
fix self shadowed self compare
Diffstat (limited to 'src/librustdoc')
-rw-r--r--src/librustdoc/html/render/search_index.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/search_index.rs b/src/librustdoc/html/render/search_index.rs
index cfb62c3ca16..91b31f31ab1 100644
--- a/src/librustdoc/html/render/search_index.rs
+++ b/src/librustdoc/html/render/search_index.rs
@@ -201,7 +201,7 @@ pub(crate) fn build_index(
                             // exported from this same module). It's also likely to Do
                             // What I Mean, since if a re-export changes the name, it might
                             // also be a change in semantic meaning.
-                            .filter(|fqp| fqp.last() == fqp.last());
+                            .filter(|this_fqp| this_fqp.last() == fqp.last());
                         Some(insert_into_map(
                             itemid_to_pathid,
                             ItemId::DefId(defid),