We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45a69cc commit ed92d88Copy full SHA for ed92d88
src/bootstrap/doc.rs
@@ -729,7 +729,17 @@ macro_rules! tool_doc {
729
cargo.rustdocflag("--show-type-layout");
730
cargo.rustdocflag("--generate-link-to-definition");
731
cargo.rustdocflag("-Zunstable-options");
732
- builder.run(&mut cargo.into());
+ if $in_tree == true {
733
+ builder.run(&mut cargo.into());
734
+ } else {
735
+ // Allow out-of-tree docs to fail (since the tool might be in a broken state).
736
+ if !builder.try_run(&mut cargo.into()) {
737
+ builder.info(&format!(
738
+ "WARNING: tool {} failed to document; ignoring failure because it is an out-of-tree tool",
739
+ stringify!($tool).to_lowercase(),
740
+ ));
741
+ }
742
743
}
744
745
0 commit comments