about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-07-29 11:19:36 +0000
committerbors <bors@rust-lang.org>2020-07-29 11:19:36 +0000
commit06e7b93f6a2a3eeaf80fd6a9a3ef7b180bb5d778 (patch)
tree8f974d00d369dff3ca45dd92b7eaa4085c4e3e66
parent0dd362ec178e5d821630c0d54cff1e1043d7bdab (diff)
parent6b4c739f92b9b50034ab1d03e0f9eec29e6cfbe1 (diff)
downloadrust-06e7b93f6a2a3eeaf80fd6a9a3ef7b180bb5d778.tar.gz
rust-06e7b93f6a2a3eeaf80fd6a9a3ef7b180bb5d778.zip
Auto merge of #74900 - tmiasko:doc-open, r=Mark-Simulacrum
Fix opening docs for std crates with ./x.py doc --open library/*

The directories for core, alloc, std, proc_macro, and test crates now
correspond directly to the crate name, and stripping the "lib" prefix is
no longer necessary.
-rw-r--r--src/bootstrap/doc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs
index 96cabf75449..a1b5ca2ea2f 100644
--- a/src/bootstrap/doc.rs
+++ b/src/bootstrap/doc.rs
@@ -460,7 +460,7 @@ impl Step for Std {
         // open the corresponding rendered docs.
         for path in builder.paths.iter().map(components_simplified) {
             if path.get(0) == Some(&"library") {
-                let requested_crate = &path[1][3..];
+                let requested_crate = &path[1];
                 if krates.contains(&requested_crate) {
                     let index = out.join(requested_crate).join("index.html");
                     open(builder, &index);