- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
fix search bar bug #50118
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
fix search bar bug #50118
Conversation
85384e5    to
    01c97ea      
    Compare
  
            
          
                src/librustdoc/html/static/main.js
              
                Outdated
          
        
      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.
Will this bite us if this block is entered from !query.query? Can query.query be undefined here?
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.
Based on this code, I'd say no. This is why I'm complaining about such conditions: it's difficult to understand what we're checking. I think the "real" condition here is if (query.query.length === 0 || query.id === currentResults) {.
| Makes sense. Thanks for the clarification! @bors r+ rollup | 
| 📌 Commit 01c97ea has been approved by  | 
| ☔ The latest upstream changes (presumably #49757) made this pull request unmergeable. Please resolve the merge conflicts. | 
| 🔒 Merge conflict | 
01c97ea    to
    f33af5c      
    Compare
  
    | Fixed merge conflict. @bors r=QuietMisdreavus | 
| 📌 Commit f33af5c has been approved by  | 
| @bors: rollup | 
…ietMisdreavus fix search bar bug Fixes rust-lang#50064. r? @QuietMisdreavus
Rollup of 11 pull requests Successful merges: - #49461 (std: Child::kill() returns error if process has already exited) - #49727 (Add Cell::update) - #49812 (Fix revision support for UI tests.) - #49829 (Add doc links to `std::os` extension traits) - #49906 (Stabilize `std::hint::unreachable_unchecked`.) - #49970 (Deprecate Read::chars and char::decode_utf8) - #49985 (don't see issue #0) - #50118 (fix search bar bug) - #50139 (encourage descriptive issue titles) - #50174 (Use FxHashMap in syntax_pos::symbol::Interner::intern.) - #50185 (core: Fix overflow in `int::mod_euc` when `self < 0 && rhs == MIN`) Failed merges:
Fixes #50064.
r? @QuietMisdreavus