ensure doc directory is not empty

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2023-11-04 15:43:09 +03:00
parent 451778b551
commit 55b49455e7

View File

@ -743,7 +743,8 @@ fn run(self, builder: &Builder<'_>) {
// Sanity check on linked compiler crates // Sanity check on linked compiler crates
for krate in &*self.crates { for krate in &*self.crates {
let dir_name = krate.replace("-", "_"); let dir_name = krate.replace("-", "_");
assert!(out.join(&*dir_name).exists()); // Making sure the directory exists and is not empty.
assert!(out.join(&*dir_name).read_dir().unwrap().next().is_some());
} }
} }