ensure doc directory is not empty
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
451778b551
commit
55b49455e7
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user