File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -110,11 +110,18 @@ impl Step for JsonDocs {
110
110
) ) ;
111
111
112
112
let dest = "share/doc/rust/json" ;
113
+ let out = builder. json_doc_out ( host) ;
114
+
115
+ // Make sure these are present in the component.
116
+ #[ cfg( not( feature = "bootstrap-self-test" ) ) ]
117
+ for f in [ "alloc.json" , "core.json" , "std.json" ] {
118
+ assert ! ( out. join( f) . exists( ) , "rust-docs-json is missing `{f}`." ) ;
119
+ }
113
120
114
121
let mut tarball = Tarball :: new ( builder, "rust-docs-json" , & host. triple ) ;
115
122
tarball. set_product_name ( "Rust Documentation In JSON Format" ) ;
116
123
tarball. is_preview ( true ) ;
117
- tarball. add_bulk_dir ( builder . json_doc_out ( host ) , dest) ;
124
+ tarball. add_bulk_dir ( out , dest) ;
118
125
Some ( tarball. generate ( ) )
119
126
}
120
127
}
You can’t perform that action at this time.
0 commit comments