@@ -52,7 +52,7 @@ fn set_to_summary_str(set: &BTreeSet<String>, dir: &str
52
52
53
53
fn generate_summary ( path : & Path , lang_features : & Features , lib_features : & Features ) {
54
54
let compiler_flags = collect_unstable_book_section_file_names (
55
- & path. join ( "compiler-flags" ) ) ;
55
+ & path. join ( "src/ compiler-flags" ) ) ;
56
56
57
57
let compiler_flags_str = set_to_summary_str ( & compiler_flags,
58
58
"compiler-flags" ) ;
@@ -61,11 +61,11 @@ fn generate_summary(path: &Path, lang_features: &Features, lib_features: &Featur
61
61
let unstable_lib_features = collect_unstable_feature_names ( & lib_features) ;
62
62
63
63
let lang_features_str = set_to_summary_str ( & unstable_lang_features,
64
- LANG_FEATURES_DIR ) ;
64
+ "language-features" ) ;
65
65
let lib_features_str = set_to_summary_str ( & unstable_lib_features,
66
- LIB_FEATURES_DIR ) ;
66
+ "library-features" ) ;
67
67
68
- let mut file = t ! ( File :: create( & path. join( "SUMMARY.md" ) ) ) ;
68
+ let mut file = t ! ( File :: create( & path. join( "src/ SUMMARY.md" ) ) ) ;
69
69
t ! ( file. write_fmt( format_args!( include_str!( "SUMMARY.md" ) ,
70
70
compiler_flags = compiler_flags_str,
71
71
language_features = lang_features_str,
@@ -120,7 +120,7 @@ fn main() {
120
120
let src_path_str = env:: args_os ( ) . skip ( 1 ) . next ( ) . expect ( "source path required" ) ;
121
121
let dest_path_str = env:: args_os ( ) . skip ( 2 ) . next ( ) . expect ( "destination path required" ) ;
122
122
let src_path = Path :: new ( & src_path_str) ;
123
- let dest_path = Path :: new ( & dest_path_str) . join ( "src" ) ;
123
+ let dest_path = Path :: new ( & dest_path_str) ;
124
124
125
125
let lang_features = collect_lang_features ( src_path, & mut false ) ;
126
126
let lib_features = collect_lib_features ( src_path) . into_iter ( ) . filter ( |& ( ref name, _) | {
0 commit comments