Skip to content

Commit 4cc1f62

Browse files
committed
add sanity check for compiler crate docs
Signed-off-by: onur-ozkan <[email protected]>
1 parent e53c434 commit 4cc1f62

File tree

1 file changed

+9
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,15 @@ impl Step for Rustc {
739739

740740
builder.run(&mut cargo.into());
741741

742+
if !builder.config.dry_run() {
743+
// Sanity check on linked compiler crates
744+
for krate in &*self.crates {
745+
let dir_name = krate.replace("-", "_");
746+
println!("SANITY CHECK ON: {}", out.join(&*dir_name).display());
747+
assert!(out.join(&*dir_name).exists());
748+
}
749+
}
750+
742751
if builder.paths.iter().any(|path| path.ends_with("compiler")) {
743752
// For `x.py doc compiler --open`, open `rustc_middle` by default.
744753
let index = out.join("rustc_middle").join("index.html");

0 commit comments

Comments
 (0)