Skip to content
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: group items by stability, rather than alphabetically #15345

Closed
bstrie opened this issue Jul 2, 2014 · 3 comments
Closed

Rustdoc: group items by stability, rather than alphabetically #15345

bstrie opened this issue Jul 2, 2014 · 3 comments
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@bstrie
Copy link
Contributor

bstrie commented Jul 2, 2014

Rustdoc has grown a lovely new feature whereby index pages with listings of functions and types will display a color next to each item indicating whether it's experimental, unstable, stable, or deprecated. I would like to go one further: group all items according to stability, rather than just having them scattered through an alphabetic list. After grouping by stability, I would like each of the four sections to be ordered as follows:

  1. Stable
  2. Unstable
  3. Experimental
  4. Deprecated

Within each group, ordering will remain alphabetical.

Reasoning: if I'm a user, I want to prefer stable items, which means that I want to see at a glance what my stable options are. If there are no stable options, then I want to consider unstable options, then experimental options, then deprecated options, in that order. Furthermore, if I'm a library author, then I want my users to consider options in the same order: stable first, then unstable-but-up-and-coming, then deprecated last.

@bstrie
Copy link
Contributor Author

bstrie commented Jul 2, 2014

cc @cmr, cc @aturon

@emberian
Copy link
Member

Related to #8552

@steveklabnik steveklabnik added the C-enhancement Category: An issue proposing an enhancement or a PR with one. label Feb 11, 2015
@alexcrichton
Copy link
Member

I'm going to close this in favor of #21674 as our stability story has changed pretty significantly since this was opened!

bors added a commit to rust-lang-ci/rust that referenced this issue Aug 7, 2023
…-failure, r=Veykril

Don't provide `add_missing_match_arms` assist when upmapping match arm list failed

Fixes rust-lang#15310

We shouldn't provide the assist when we fail to find the original match arm list.

Note that this PR will temporarily make the assist not applicable when attribute macro operates on the match expression in question, just like the case in rust-lang#15310, for most of the current stable toolchain users. This is because the sysroot-abi proc-macro-srv on the current stable [discards] spans for `Group` delimiters in some code paths, which the popular `proc-macro2` crate almost always calls, and it makes the identity of match arm list's brackets lost, leading to the upmapping failure. This has been fixed by rust-lang#14960, which will land in the next stable, 1.71.

[discards]: https://github.com/rust-lang/rust/blob/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/src/tools/rust-analyzer/crates/proc-macro-srv/src/abis/abi_sysroot/ra_server.rs#L231
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants