Skip to content

Commit 43c16ac

Browse files
committed
Remove dead code in doc.rs
`run` is never called for invalid paths; they get filtered out by `should_run`.
1 parent 50d1ee9 commit 43c16ac

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

src/bootstrap/doc.rs

+7-14
Original file line numberDiff line numberDiff line change
@@ -618,20 +618,13 @@ impl Step for Rustc {
618618
}
619619
} else {
620620
for root_crate_path in paths {
621-
if !root_crate_path.exists() {
622-
builder.info(&format!(
623-
"\tskipping - {} (unknown compiler crate)",
624-
root_crate_path.display()
625-
));
626-
} else {
627-
let root_crate = builder.crate_paths[root_crate_path];
628-
compiler_crates.extend(
629-
builder
630-
.in_tree_crates(&root_crate, Some(target))
631-
.into_iter()
632-
.map(|krate| krate.name),
633-
);
634-
}
621+
let root_crate = builder.crate_paths[root_crate_path];
622+
compiler_crates.extend(
623+
builder
624+
.in_tree_crates(&root_crate, Some(target))
625+
.into_iter()
626+
.map(|krate| krate.name),
627+
);
635628
}
636629
}
637630

0 commit comments

Comments
 (0)