File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
branches/try/src/librustdoc/html Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5
- refs/heads/try: e12671b4d7ba8015c0d713bb61c21afdbce9e1d1
5
+ refs/heads/try: 32956cb565e0be79e37f09707a6f028a70e04ccb
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ pub use self::ExternalLocation::*;
37
37
use std:: ascii:: OwnedAsciiExt ;
38
38
use std:: cell:: RefCell ;
39
39
use std:: cmp:: Ordering ;
40
- use std:: collections:: { HashMap , HashSet } ;
40
+ use std:: collections:: { BTreeMap , HashMap , HashSet } ;
41
41
use std:: default:: Default ;
42
42
use std:: fmt;
43
43
use std:: fs:: { self , File } ;
@@ -1298,8 +1298,9 @@ impl Context {
1298
1298
}
1299
1299
}
1300
1300
1301
- fn build_sidebar_items ( & self , m : & clean:: Module ) -> HashMap < String , Vec < NameDoc > > {
1302
- let mut map = HashMap :: new ( ) ;
1301
+ fn build_sidebar_items ( & self , m : & clean:: Module ) -> BTreeMap < String , Vec < NameDoc > > {
1302
+ // BTreeMap instead of HashMap to get a sorted output
1303
+ let mut map = BTreeMap :: new ( ) ;
1303
1304
for item in & m. items {
1304
1305
if self . ignore_private_item ( item) { continue }
1305
1306
You can’t perform that action at this time.
0 commit comments