rust/src/librustdoc/html
Matthias Krüger 8bb238b8df
Rollup merge of #91977 - GuillaumeGomez:unify-search-code, r=jsha
Clean up search code and unify function returned values

This PR is a cleanup: there is no changes in the search results or in the UI.

Depending if it was "literal search" or not, it was either returning booleans or integers. It's pretty bad so instead it all returns integers.

Another thing I did was to move the add and checks into a `addIntoResults` function to simplify things.

Last thing: I removed a loop in the `sortResults` function and moved its code directly into the first loop.

All these changes are done to make #90630 much smaller.

r? `@jsha`
2021-12-18 11:28:05 +01:00
..
highlight rustdoc: use better highlighting for *const, *mut, and &mut 2021-10-25 11:13:43 -07:00
length_limit Don't panic if close_tag() is called without tags to close 2021-08-25 20:09:17 -07:00
markdown Rename ID "main" into "main-content" 2021-12-02 14:17:20 +01:00
render Auto merge of #91812 - camelid:assoc-const-lazy, r=GuillaumeGomez 2021-12-17 06:03:38 +00:00
static Make loop more clear by renaming variables 2021-12-16 23:17:03 +01:00
templates Apply rust-logo class only on default logo 2021-12-15 10:49:45 -08:00
toc Format the world 2019-12-22 17:42:47 -05:00
escape.rs rustdoc tweaking 2021-01-30 01:02:18 +00:00
format.rs rustdoc: Remove single-use Lifetime::get_ref() function 2021-12-03 20:08:11 -08:00
highlight.rs Fix RustDoc 2021-11-23 20:36:17 +00:00
layout.rs Consistentize the system for image URLs in CSS. 2021-11-24 19:41:48 -08:00
length_limit.rs Don't panic if close_tag() is called without tags to close 2021-08-25 20:09:17 -07:00
markdown.rs Rename ID "main" into "main-content" 2021-12-02 14:17:20 +01:00
mod.rs Refactor Markdown length-limited summary implementation 2021-08-19 16:22:54 -07:00
sources.rs rustdoc: Small micro-optimizations and cleanups 2021-10-31 21:10:32 -07:00
static_files.rs rustdoc: use ttf based font for cjk glyphs 2021-10-26 10:58:13 +09:00
tests.rs rustdoc: use more precise relative URLS 2021-04-17 09:21:52 -07:00
toc.rs clippy fixes for librustdoc 2021-01-01 21:19:10 +01:00