Skip to content

Commit fda009c

Browse files
committed
add sanity check for compiler crate docs
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 5e2de47 commit fda009c

File tree

1 file changed

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

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,14 @@ 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+
assert!(out.join(&*dir_name).exists());
747+
}
748+
}
749+
742750
if builder.paths.iter().any(|path| path.ends_with("compiler")) {
743751
// For `x.py doc compiler --open`, open `rustc_middle` by default.
744752
let index = out.join("rustc_middle").join("index.html");

0 commit comments

Comments
 (0)