Skip to content

Commit a7eff79

Browse files
committed
Auto merge of #74861 - mark-i-m:mv-std-followup, r=Mark-Simulacrum
Re-enable linkcheck after moving std
2 parents 2caf854 + 6726ca2 commit a7eff79

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

src/bootstrap/builder/tests.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,7 @@ mod dist {
546546
);
547547
}
548548

549-
//FIXME(mark-i-m): reinstate this test when things are fixed...
550-
//#[test]
551-
#[allow(dead_code)]
549+
#[test]
552550
fn test_docs() {
553551
// Behavior of `x.py test` doing various documentation tests.
554552
let mut config = configure(&[], &[]);

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/bootstrap/test.rs

+9-10
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,18 @@ impl Step for Linkcheck {
106106
///
107107
/// This tool in `src/tools` will verify the validity of all our links in the
108108
/// documentation to ensure we don't have a bunch of dead ones.
109-
fn run(self, _builder: &Builder<'_>) {
110-
// FIXME(mark-i-m): uncomment this after we fix the links...
111-
// let host = self.host;
109+
fn run(self, builder: &Builder<'_>) {
110+
let host = self.host;
112111

113-
// builder.info(&format!("Linkcheck ({})", host));
112+
builder.info(&format!("Linkcheck ({})", host));
114113

115-
// builder.default_doc(None);
114+
builder.default_doc(None);
116115

117-
// let _time = util::timeit(&builder);
118-
// try_run(
119-
// builder,
120-
// builder.tool_cmd(Tool::Linkchecker).arg(builder.out.join(host.triple).join("doc")),
121-
// );
116+
let _time = util::timeit(&builder);
117+
try_run(
118+
builder,
119+
builder.tool_cmd(Tool::Linkchecker).arg(builder.out.join(host.triple).join("doc")),
120+
);
122121
}
123122

124123
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {

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)