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 {
110110 ) ) ;
111111
112112 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+ }
113120
114121 let mut tarball = Tarball :: new ( builder, "rust-docs-json" , & host. triple ) ;
115122 tarball. set_product_name ( "Rust Documentation In JSON Format" ) ;
116123 tarball. is_preview ( true ) ;
117- tarball. add_bulk_dir ( builder . json_doc_out ( host ) , dest) ;
124+ tarball. add_bulk_dir ( out , dest) ;
118125 Some ( tarball. generate ( ) )
119126 }
120127}
You can’t perform that action at this time.
0 commit comments