Skip to content

Commit 49e5ef5

Browse files
committed
ensure doc directory is not empty
Signed-off-by: onur-ozkan <[email protected]>
1 parent 451778b commit 49e5ef5

File tree

1 file changed

+2
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+2
-1
lines changed

src/bootstrap/src/core/build_steps/doc.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,8 @@ impl Step for Rustc {
743743
// Sanity check on linked compiler crates
744744
for krate in &*self.crates {
745745
let dir_name = krate.replace("-", "_");
746-
assert!(out.join(&*dir_name).exists());
746+
// Making sure the directory is not empty.
747+
assert!(out.join(&*dir_name).read_dir().unwrap().next().is_some());
747748
}
748749
}
749750

0 commit comments

Comments
 (0)