We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 451778b commit 55b4945Copy full SHA for 55b4945
src/bootstrap/src/core/build_steps/doc.rs
@@ -743,7 +743,8 @@ impl Step for Rustc {
743
// Sanity check on linked compiler crates
744
for krate in &*self.crates {
745
let dir_name = krate.replace("-", "_");
746
- assert!(out.join(&*dir_name).exists());
+ // Making sure the directory exists and is not empty.
747
+ assert!(out.join(&*dir_name).read_dir().unwrap().next().is_some());
748
}
749
750
0 commit comments