@@ -17,7 +17,7 @@ extern crate tidy;
1717use tidy:: features:: { Feature , Features , collect_lib_features, collect_lang_features} ;
1818use tidy:: unstable_book:: { collect_unstable_feature_names, collect_unstable_book_section_file_names,
1919 PATH_STR , LANG_FEATURES_DIR , LIB_FEATURES_DIR } ;
20- use std:: collections:: HashSet ;
20+ use std:: collections:: BTreeSet ;
2121use std:: io:: Write ;
2222use std:: fs:: { self , File } ;
2323use std:: env;
@@ -48,9 +48,9 @@ fn generate_stub_no_issue(path: &Path, name: &str) {
4848 name = name) ) ) ;
4949}
5050
51- fn hset_to_summary_str ( hset : HashSet < String > , dir : & str
51+ fn set_to_summary_str ( set : & BTreeSet < String > , dir : & str
5252) -> String {
53- hset
53+ set
5454 . iter ( )
5555 . map ( |ref n| format ! ( " - [{}]({}/{}.md)" ,
5656 n,
@@ -63,16 +63,16 @@ fn generate_summary(path: &Path, lang_features: &Features, lib_features: &Featur
6363 let compiler_flags = collect_unstable_book_section_file_names (
6464 & path. join ( "compiler-flags" ) ) ;
6565
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" ) ;
6868
6969 let unstable_lang_features = collect_unstable_feature_names ( & lang_features) ;
7070 let unstable_lib_features = collect_unstable_feature_names ( & lib_features) ;
7171
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 ) ;
7676
7777 let mut file = t ! ( File :: create( & path. join( "SUMMARY.md" ) ) ) ;
7878 t ! ( file. write_fmt( format_args!( include_str!( "SUMMARY.md" ) ,
0 commit comments