Skip to content

Commit 6726ca2

Browse files
Mark-Simulacrummark-i-m
authored andcommitted
Collect library features from library/
1 parent 856f68f commit 6726ca2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/bootstrap/doc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@ impl Step for UnstableBookGen {
693693
builder.create_dir(&out);
694694
builder.remove_dir(&out);
695695
let mut cmd = builder.tool_cmd(Tool::UnstableBookGen);
696+
cmd.arg(builder.src.join("library"));
696697
cmd.arg(builder.src.join("src"));
697698
cmd.arg(out);
698699

src/tools/unstable-book-gen/src/main.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,15 @@ fn copy_recursive(from: &Path, to: &Path) {
9494
}
9595

9696
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);
99101
let src_path = Path::new(&src_path_str);
100102
let dest_path = Path::new(&dest_path_str);
101103

102104
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)
104106
.into_iter()
105107
.filter(|&(ref name, _)| !lang_features.contains_key(name))
106108
.collect();

0 commit comments

Comments
 (0)