Skip to content

Commit 900af41

Browse files
committed
fix out dir being wrong in json
1 parent 1bc2bfa commit 900af41

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bootstrap/doc.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,11 @@ impl Step for Std {
465465
fn run(self, builder: &Builder<'_>) {
466466
let stage = self.stage;
467467
let target = self.target;
468-
let out = builder.doc_out(target);
468+
let out = match self.format {
469+
DocumentationFormat::HTML => builder.doc_out(target),
470+
DocumentationFormat::JSON => builder.json_doc_out(target),
471+
};
472+
469473
t!(fs::create_dir_all(&out));
470474

471475
builder.ensure(SharedAssets { target: self.target });

0 commit comments

Comments
 (0)