rust/src/librustdoc/html
Michael Howell 28f17d97a9 rustdoc-search: make primitives and keywords less special
The search sorting code already sorts by item type discriminant,
putting things with smaller discriminants first. There was
also a special case for sorting keywords and primitives earlier,
and this commit removes it by giving them lower discriminants.

The sorting code has another criteria where items with descriptions
appear earlier than items without, and that criteria has higher
priority than the item type. This shouldn't matter, though,
because primitives and keywords normally only appear in the
standard library, and it always gives them descriptions.
2023-11-21 13:59:26 -07:00
..
highlight Improve code readability by moving fmt args directly into the string 2023-08-16 16:35:23 +02:00
length_limit Remove from librustdoc and clippy too 2023-01-27 20:44:19 -08:00
markdown Allow more characters in custom classes 2023-09-19 17:29:30 +02:00
render rustdoc-search: add support for associated types 2023-11-19 18:54:36 -07:00
static rustdoc-search: make primitives and keywords less special 2023-11-21 13:59:26 -07:00
templates make LayoutError::Cycle carry ErrorGuaranteed 2023-11-12 18:59:18 +00:00
toc Format the world 2019-12-22 17:42:47 -05:00
url_parts_builder Document and test UrlPartsBuilder::push_fmt 2022-01-14 12:05:35 -08:00
escape.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00
format.rs Re-format code with new rustfmt 2023-11-15 21:45:48 -05:00
highlight.rs Re-format code with new rustfmt 2023-11-15 21:45:48 -05:00
layout.rs rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
length_limit.rs Improve code readability by moving fmt args directly into the string 2023-08-16 16:35:23 +02:00
markdown.rs Re-format code with new rustfmt 2023-11-15 21:45:48 -05:00
mod.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00
sources.rs Re-format code with new rustfmt 2023-11-15 21:45:48 -05:00
static_files.rs rustdoc: merge theme css into rustdoc.css 2023-09-15 07:40:17 -07:00
tests.rs rustdoc: avoid many Symbol to String conversions. 2022-01-14 11:57:18 -08:00
toc.rs fix clippy perf lints 2022-05-24 13:35:54 -04:00
url_parts_builder.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00