Skip to content

Commit

Permalink
Rollup merge of #134214 - klensy:rd-shadow, r=notriddle
Browse files Browse the repository at this point in the history
rustdoc: fix self cmp

Looks like condition in `filter` currently always `true`, but intended to compare with `fqp` from `if let Some(&(ref fqp, item_type))`?
  • Loading branch information
matthiaskrgr authored Dec 12, 2024
2 parents 8d2759b + 86a4a27 commit 357d03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/render/search_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 357d03d

Please sign in to comment.