Skip to content

Commit

Permalink
ensure doc directory is not empty
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <[email protected]>
  • Loading branch information
onur-ozkan committed Nov 4, 2023
1 parent 451778b commit 49e5ef5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bootstrap/src/core/build_steps/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,8 @@ impl Step for Rustc {
// Sanity check on linked compiler crates
for krate in &*self.crates {
let dir_name = krate.replace("-", "_");
assert!(out.join(&*dir_name).exists());
// Making sure the directory is not empty.
assert!(out.join(&*dir_name).read_dir().unwrap().next().is_some());
}
}

Expand Down

0 comments on commit 49e5ef5

Please sign in to comment.