-
Notifications
You must be signed in to change notification settings - Fork 14.1k
rustdoc: sort stable items first #149460
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
base: main
Are you sure you want to change the base?
rustdoc: sort stable items first #149460
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The PR title says it sorts unstable items first. This test seems to show the unstable item appearing last. Which is it?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pr title was a typo, fixed (need to go back and fix the commit description too) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| const EXPECTED = [ | ||
| { | ||
| 'query': 'foo', | ||
| 'others': [ | ||
| {"path": "sort_stability::old", "name": "foo"}, | ||
| {"path": "sort_stability::new", "name": "foo"}, | ||
| ], | ||
| }, | ||
| ]; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #![feature(staged_api)] | ||
| #![stable(feature = "foo_lib", since = "1.0.0")] | ||
|
|
||
| #[stable(feature = "old_foo", since = "1.0.1")] | ||
| pub mod old { | ||
| /// Old, stable foo | ||
| #[stable(feature = "old_foo", since = "1.0.1")] | ||
| pub fn foo() {} | ||
| } | ||
|
|
||
| #[unstable(feature = "new_foo", issue = "none")] | ||
| pub mod new { | ||
| /// New, unstable foo | ||
| #[unstable(feature = "new_foo", issue = "none")] | ||
| pub fn foo() {} | ||
| } |
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.
That confirms that title is wrong. 😉