Jonathan Brouwer
b0d9ae60e1
Rollup merge of #156401 - shivendra02467:doc-cfg-sort-fix, r=GuillaumeGomez
...
rustdoc: deterministic sorting for `doc_cfg` badges
Fixes rust-lang/rust#156391
Currently, target-exclusive `doc_cfg` badges (eg. "Available on...") reuse the order of predicates as they appear in the source code. This often buries popular targets behind niche ones and leads to inconsistent UI rendering.
This PR introduces a deterministic sorting mechanism to the `Cfg` AST prior to HTML/JSON rendering.
**Note for Reviewers:**
To provide the best UX, I implemented a lightweight tiering heuristic (prioritizing major platforms like Linux/Apple/Windows first, followed by mobile, then BSDs, and alphabetizing the rest). However, I am completely open to tweaking these priority groupings or falling back to a different sorting logic if the team prefers. Let me know what you think!
2026-05-28 14:59:41 +02:00
..
2026-01-17 12:12:36 +01:00
2026-03-10 13:18:10 +01:00
2026-01-07 14:23:30 +01:00
2026-02-12 09:09:35 +01:00
2026-04-17 18:52:21 +02:00
2026-01-07 14:23:30 +01:00
2026-02-09 07:59:24 -08:00
2026-01-07 14:23:30 +01:00
2026-04-01 23:05:42 +01:00
2026-05-28 16:15:20 +05:30
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-02-24 11:41:26 -05:00
2026-01-07 14:23:30 +01:00
2026-02-23 16:25:27 +01:00
2026-05-28 16:15:20 +05:30
2026-01-07 14:23:30 +01:00
2026-04-20 18:38:25 +10:00
2026-01-07 14:23:30 +01:00
2026-05-24 03:17:11 +00:00
2026-05-10 02:37:58 +02:00
2026-05-15 00:42:17 +02:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-03-02 11:44:40 +01:00
2026-01-07 14:23:30 +01:00
2026-04-16 11:51:51 +05:30
2026-03-31 12:51:12 -05:00
2026-02-11 12:06:24 +01:00
2026-02-12 09:09:35 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-04-25 20:06:30 +02:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-04-25 20:06:30 +02:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-19 14:32:43 -06:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-22 09:15:53 +09:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-05-10 02:37:58 +02:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-05-22 18:08:11 +03:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-02-12 09:09:35 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-02-12 15:18:15 +08:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-27 16:24:53 +03:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-04-07 11:50:34 +05:30
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-04-07 22:26:21 +08:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-05-28 16:15:20 +05:30
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-02-10 18:00:54 +00:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-03-31 12:51:12 -05:00
2026-01-07 14:23:30 +01:00
2026-04-15 22:32:07 -04:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00
2026-01-07 14:23:30 +01:00