Remove dead code in doc.rs

`run` is never called for invalid paths; they get filtered out by `should_run`.
This commit is contained in:
Joshua Nelson 2022-03-30 17:17:31 -05:00
parent 50d1ee90e7
commit 43c16acc27

View file

@ -618,20 +618,13 @@ impl Step for Rustc {
}
} else {
for root_crate_path in paths {
if !root_crate_path.exists() {
builder.info(&format!(
"\tskipping - {} (unknown compiler crate)",
root_crate_path.display()
));
} else {
let root_crate = builder.crate_paths[root_crate_path];
compiler_crates.extend(
builder
.in_tree_crates(&root_crate, Some(target))
.into_iter()
.map(|krate| krate.name),
);
}
let root_crate = builder.crate_paths[root_crate_path];
compiler_crates.extend(
builder
.in_tree_crates(&root_crate, Some(target))
.into_iter()
.map(|krate| krate.name),
);
}
}