-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustdoc: fix self cmp #134214
rustdoc: fix self cmp #134214
Conversation
r? @notriddle rustbot has assigned @notriddle. Use |
rust/src/librustdoc/html/render/search_index.rs Lines 192 to 204 in 8e37e15
compare fqp from line 192 with fqp from closure on line 204. |
Ouch, good catch. Any idea if this causes any visible bugs? |
Idk, waiting test results. |
I see it didn't break anything. @bors r+ |
@@ -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()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's another filter that's the inverse of this at line 212
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not actually the same. This one only checks the last path component. The one on 212 checks the entire path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahhh indeed
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#133122 (Add unpolished, experimental support for AFIDT (async fn in dyn trait)) - rust-lang#133249 (ABI checks: add support for loongarch) - rust-lang#134089 (Use newly added exceptions to non default branch warning) - rust-lang#134188 (Bump Fuchsia) - rust-lang#134204 (Fix our `llvm::Bool` typedef to be signed, to match `LLVMBool`) - rust-lang#134207 (Revert "bootstrap: print{ln}! -> eprint{ln}! (take 2) rust-lang#134040") - rust-lang#134214 (rustdoc: fix self cmp) r? `@ghost` `@rustbot` modify labels: rollup
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))`?
Looks like condition in
filter
currently alwaystrue
, but intended to compare withfqp
fromif let Some(&(ref fqp, item_type))
?