@@ -17,7 +17,7 @@ extern crate tidy;
17
17
use tidy:: features:: { Feature , Features , collect_lib_features, collect_lang_features} ;
18
18
use tidy:: unstable_book:: { collect_unstable_feature_names, collect_unstable_book_section_file_names,
19
19
PATH_STR , LANG_FEATURES_DIR , LIB_FEATURES_DIR } ;
20
- use std:: collections:: HashSet ;
20
+ use std:: collections:: BTreeSet ;
21
21
use std:: io:: Write ;
22
22
use std:: fs:: { self , File } ;
23
23
use std:: env;
@@ -48,9 +48,9 @@ fn generate_stub_no_issue(path: &Path, name: &str) {
48
48
name = name) ) ) ;
49
49
}
50
50
51
- fn hset_to_summary_str ( hset : HashSet < String > , dir : & str
51
+ fn set_to_summary_str ( set : & BTreeSet < String > , dir : & str
52
52
) -> String {
53
- hset
53
+ set
54
54
. iter ( )
55
55
. map ( |ref n| format ! ( " - [{}]({}/{}.md)" ,
56
56
n,
@@ -63,16 +63,16 @@ fn generate_summary(path: &Path, lang_features: &Features, lib_features: &Featur
63
63
let compiler_flags = collect_unstable_book_section_file_names (
64
64
& path. join ( "compiler-flags" ) ) ;
65
65
66
- let compiler_flags_str = hset_to_summary_str ( compiler_flags,
67
- "compiler-flags" ) ;
66
+ let compiler_flags_str = set_to_summary_str ( & compiler_flags,
67
+ "compiler-flags" ) ;
68
68
69
69
let unstable_lang_features = collect_unstable_feature_names ( & lang_features) ;
70
70
let unstable_lib_features = collect_unstable_feature_names ( & lib_features) ;
71
71
72
- let lang_features_str = hset_to_summary_str ( unstable_lang_features,
73
- LANG_FEATURES_DIR ) ;
74
- let lib_features_str = hset_to_summary_str ( unstable_lib_features,
75
- LIB_FEATURES_DIR ) ;
72
+ let lang_features_str = set_to_summary_str ( & unstable_lang_features,
73
+ LANG_FEATURES_DIR ) ;
74
+ let lib_features_str = set_to_summary_str ( & unstable_lib_features,
75
+ LIB_FEATURES_DIR ) ;
76
76
77
77
let mut file = t ! ( File :: create( & path. join( "SUMMARY.md" ) ) ) ;
78
78
t ! ( file. write_fmt( format_args!( include_str!( "SUMMARY.md" ) ,
0 commit comments