Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 55b4945

Browse files
committedNov 4, 2023
ensure doc directory is not empty
Signed-off-by: onur-ozkan <[email protected]>
1 parent 451778b commit 55b4945

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 exists and is not empty.
747+
assert!(out.join(&*dir_name).read_dir().unwrap().next().is_some());
747748
}
748749
}
749750

0 commit comments

Comments
 (0)
Please sign in to comment.