Skip to content

Commit 6f2e3fe

Browse files
mvdnessteveklabnik
authored andcommitted
---
yaml --- r: 209503 b: refs/heads/try c: 32956cb h: refs/heads/master i: 209501: 147db74 209499: 2a0a871 209495: 28eae3c 209487: 47ce95d 209471: c37fbd9 v: v3
1 parent e4d858d commit 6f2e3fe

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: e12671b4d7ba8015c0d713bb61c21afdbce9e1d1
5+
refs/heads/try: 32956cb565e0be79e37f09707a6f028a70e04ccb
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/librustdoc/html/render.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub use self::ExternalLocation::*;
3737
use std::ascii::OwnedAsciiExt;
3838
use std::cell::RefCell;
3939
use std::cmp::Ordering;
40-
use std::collections::{HashMap, HashSet};
40+
use std::collections::{BTreeMap, HashMap, HashSet};
4141
use std::default::Default;
4242
use std::fmt;
4343
use std::fs::{self, File};
@@ -1298,8 +1298,9 @@ impl Context {
12981298
}
12991299
}
13001300

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();
13031304
for item in &m.items {
13041305
if self.ignore_private_item(item) { continue }
13051306

0 commit comments

Comments
 (0)