about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorviandoxdev <titouangoulois29@gmail.com>2022-11-02 11:28:31 +0100
committerviandoxdev <titouangoulois29@gmail.com>2022-11-02 11:28:31 +0100
commit1bc2bfa44cb70bb744bfd469f05d2d92e040e247 (patch)
tree1e3f8c89462173ecdc8aff1c77628889d4d52e22 /src
parent972d075aa62c87bc9fb660335e7dc1f75fa853c1 (diff)
downloadrust-1bc2bfa44cb70bb744bfd469f05d2d92e040e247.tar.gz
rust-1bc2bfa44cb70bb744bfd469f05d2d92e040e247.zip
prevent open with json
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/doc.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs
index bbd8830a01c..f3883e5e6bf 100644
--- a/src/bootstrap/doc.rs
+++ b/src/bootstrap/doc.rs
@@ -506,6 +506,11 @@ impl Step for Std {
 
         doc_std(builder, self.format, stage, target, &out, &extra_args, &requested_crates);
 
+        // Don't open if the format is json
+        if let DocumentationFormat::JSON = self.format {
+            return;
+        }
+
         // Look for library/std, library/core etc in the `x.py doc` arguments and
         // open the corresponding rendered docs.
         for requested_crate in requested_crates {