diff options
| author | jyn <github@jyn.dev> | 2023-07-14 17:34:27 -0500 |
|---|---|---|
| committer | jyn <github@jyn.dev> | 2023-07-14 17:34:27 -0500 |
| commit | 3a0caed188df8abe1a60d50100df69d17b1fb798 (patch) | |
| tree | 7e4dc75e1a60395b3b3d407d59b706107bd52858 | |
| parent | 02ae14c9725eae0919007b16a0e48422e3ba9715 (diff) | |
| download | rust-3a0caed188df8abe1a60d50100df69d17b1fb798.tar.gz rust-3a0caed188df8abe1a60d50100df69d17b1fb798.zip | |
fix another nesting issue
| -rw-r--r-- | src/bootstrap/doc.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index c793b79a97c..e58f736d67f 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -566,10 +566,6 @@ fn doc_std( let compiler = builder.compiler(stage, builder.config.build); - let description = - format!("library{} in {} format", crate_description(&requested_crates), format.as_str()); - let _guard = builder.msg_doc(compiler, &description, target); - let target_doc_dir_name = if format == DocumentationFormat::JSON { "json-doc" } else { "doc" }; let target_dir = builder.stage_out(compiler, Mode::Std).join(target.triple).join(target_doc_dir_name); @@ -606,6 +602,10 @@ fn doc_std( cargo.arg("-p").arg(krate); } + let description = + format!("library{} in {} format", crate_description(&requested_crates), format.as_str()); + let _guard = builder.msg_doc(compiler, &description, target); + builder.run(&mut cargo.into()); builder.cp_r(&out_dir, &out); } |
