Skip to content

Commit 357d03d

Browse files
authored
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))`?
2 parents 8d2759b + 86a4a27 commit 357d03d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render/search_index.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ pub(crate) fn build_index(
201201
// exported from this same module). It's also likely to Do
202202
// What I Mean, since if a re-export changes the name, it might
203203
// also be a change in semantic meaning.
204-
.filter(|fqp| fqp.last() == fqp.last());
204+
.filter(|this_fqp| this_fqp.last() == fqp.last());
205205
Some(insert_into_map(
206206
itemid_to_pathid,
207207
ItemId::DefId(defid),

0 commit comments

Comments
 (0)