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:
parent
50d1ee90e7
commit
43c16acc27
1 changed files with 7 additions and 14 deletions
|
|
@ -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue