mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
Sort unstable items last in rustdoc, instead of first
This commit is contained in:
parent
a994f46421
commit
b77aa74a2d
|
@ -369,8 +369,8 @@ fn cmp(
|
|||
if let (Some(a), Some(b)) = (s1, s2) {
|
||||
match (a.is_stable(), b.is_stable()) {
|
||||
(true, true) | (false, false) => {}
|
||||
(false, true) => return Ordering::Less,
|
||||
(true, false) => return Ordering::Greater,
|
||||
(false, true) => return Ordering::Greater,
|
||||
(true, false) => return Ordering::Less,
|
||||
}
|
||||
}
|
||||
let lhs = i1.name.unwrap_or(kw::Empty);
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
#![unstable(feature = "test", issue = "none")]
|
||||
|
||||
// @has stability/index.html
|
||||
// @has - '//ul[@class="item-table"]/li[1]//a' Unstable
|
||||
// @has - '//ul[@class="item-table"]/li[2]//a' AaStable
|
||||
// @has - '//ul[@class="item-table"]/li[3]//a' ZzStable
|
||||
// @has - '//ul[@class="item-table"]/li[1]//a' AaStable
|
||||
// @has - '//ul[@class="item-table"]/li[2]//a' ZzStable
|
||||
// @has - '//ul[@class="item-table"]/li[3]//a' Unstable
|
||||
|
||||
#[stable(feature = "rust2", since = "2.2.2")]
|
||||
pub struct AaStable;
|
||||
|
|
Loading…
Reference in a new issue