Skip to content

Commit

Permalink
Unrolled build for rust-lang#134214
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#134214 - klensy:rd-shadow, r=notriddle

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
rust-timer authored Dec 12, 2024
2 parents a94fce9 + 86a4a27 commit f802960
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 f802960

Please sign in to comment.