rust/src/librustdoc
Michael Howell 53846925ca rustdoc: clean up and fix ord violations in item sorting
Based on e3fdafc263 with a few
minor changes:

- The name sorting function is changed to follow the [version sort]
  from the style guide
- the `cmp` function is redesigned to more obviously make a
  partial order, by always return `cmp()` of the same variable as
  the `!=` above

[version sort]: https://doc.rust-lang.org/nightly/style-guide/index.html#sorting

Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
2024-07-24 11:08:44 -07:00
..
clean Auto merge of #127658 - compiler-errors:precise-capturing-rustdoc-cross, r=fmease 2024-07-20 11:03:35 +00:00
doctest Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
formats Revert "Rollup merge of #124976 - petrochenkov:usedcrates, r=oli-obk" 2024-06-06 10:06:28 +00:00
html rustdoc: clean up and fix ord violations in item sorting 2024-07-24 11:08:44 -07:00
json Add rustdoc-json support for use<> 2024-07-12 05:24:51 -04:00
passes Rollup merge of #127301 - estebank:fix-suggestions, r=Urgau 2024-07-04 18:16:24 +02:00
theme rustdoc: merge theme css into rustdoc.css 2023-09-15 07:40:17 -07:00
Cargo.toml Replace askama with rinja 2024-07-23 11:19:55 +02:00
config.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
core.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
docfs.rs remove redundant imports 2023-12-10 10:56:22 +08:00
doctest.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
error.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00
externalfiles.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
fold.rs Implement unsafe_extern_blocks feature in rustdoc 2024-06-20 22:12:35 +02:00
lib.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
lint.rs Auto merge of #127097 - compiler-errors:async-closure-lint, r=oli-obk 2024-07-11 06:59:10 +00:00
markdown.rs Move Markdown-specific doctest code into submodule 2024-06-07 17:48:47 +02:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
rinja.toml Replace askama with rinja 2024-07-23 11:19:55 +02:00
scrape_examples.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
theme.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
visit.rs Implement unsafe_extern_blocks feature in rustdoc 2024-06-20 22:12:35 +02:00
visit_ast.rs Don't require visit_body to take a lifetime that must outlive the function call 2024-05-29 10:04:08 +00:00
visit_lib.rs Correctly handle --document-hidden-items 2023-07-14 17:25:09 +02:00

For more information about how librustdoc works, see the rustc dev guide.