File tree 2 files changed +6
-3
lines changed
tools/unstable-book-gen/src
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -693,6 +693,7 @@ impl Step for UnstableBookGen {
693
693
builder. create_dir ( & out) ;
694
694
builder. remove_dir ( & out) ;
695
695
let mut cmd = builder. tool_cmd ( Tool :: UnstableBookGen ) ;
696
+ cmd. arg ( builder. src . join ( "library" ) ) ;
696
697
cmd. arg ( builder. src . join ( "src" ) ) ;
697
698
cmd. arg ( out) ;
698
699
Original file line number Diff line number Diff line change @@ -94,13 +94,15 @@ fn copy_recursive(from: &Path, to: &Path) {
94
94
}
95
95
96
96
fn main ( ) {
97
- let src_path_str = env:: args_os ( ) . skip ( 1 ) . next ( ) . expect ( "source path required" ) ;
98
- let dest_path_str = env:: args_os ( ) . skip ( 2 ) . next ( ) . expect ( "destination path required" ) ;
97
+ let library_path_str = env:: args_os ( ) . skip ( 1 ) . next ( ) . expect ( "library path required" ) ;
98
+ let src_path_str = env:: args_os ( ) . skip ( 2 ) . next ( ) . expect ( "source path required" ) ;
99
+ let dest_path_str = env:: args_os ( ) . skip ( 3 ) . next ( ) . expect ( "destination path required" ) ;
100
+ let library_path = Path :: new ( & library_path_str) ;
99
101
let src_path = Path :: new ( & src_path_str) ;
100
102
let dest_path = Path :: new ( & dest_path_str) ;
101
103
102
104
let lang_features = collect_lang_features ( src_path, & mut false ) ;
103
- let lib_features = collect_lib_features ( src_path )
105
+ let lib_features = collect_lib_features ( library_path )
104
106
. into_iter ( )
105
107
. filter ( |& ( ref name, _) | !lang_features. contains_key ( name) )
106
108
. collect ( ) ;
You can’t perform that action at this time.
0 commit comments