-
Couldn't load subscription status.
- Fork 13.9k
Rustdoc: Fix natural ordering to look at all numbers. #75347
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
Rustdoc: Fix natural ordering to look at all numbers. #75347
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
7dcd372 to
02c60ea
Compare
|
I really like this change! What do you think @rust-lang/rustdoc ? |
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.
Looks good to me :)
The old implementation only looks at numbers at the end, but not in other places in a name: "u8" and "u16" got sorted properly, but "u8_bla" and "u16_bla" did not.
02c60ea to
8c705f8
Compare
|
@bors r=GuillaumeGomez rollup |
|
📌 Commit 8c705f8 has been approved by |
Rollup of 10 pull requests Successful merges: - rust-lang#74744 (Update RELEASES.md for 1.46.0) - rust-lang#75085 (Transmute big endian `s6_addr` and `[u16; 8]`) - rust-lang#75226 (Miri: Renamed "undef" to "uninit") - rust-lang#75333 (polymorphize: constrain unevaluated const handling) - rust-lang#75338 (move stack size check to const_eval machine) - rust-lang#75347 (Rustdoc: Fix natural ordering to look at all numbers.) - rust-lang#75352 (Tweak conditions for E0026 and E0769) - rust-lang#75353 (Tiny cleanup, remove unnecessary `unwrap`) - rust-lang#75359 (unused_delims: trim expr) - rust-lang#75360 (Add sample fix for E0749) Failed merges: r? @ghost
The old implementation only looks at numbers at the end, but not in other places in a name:
u8andu16got sorted properly, butu8_blaandu16_bladid not.Edit: Also fixes bugs in the old sorting code: