Skip to content

Commit 06e7b93

Browse files
committed
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.
2 parents 0dd362e + 6b4c739 commit 06e7b93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/bootstrap/doc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ impl Step for Std {
460460
// open the corresponding rendered docs.
461461
for path in builder.paths.iter().map(components_simplified) {
462462
if path.get(0) == Some(&"library") {
463-
let requested_crate = &path[1][3..];
463+
let requested_crate = &path[1];
464464
if krates.contains(&requested_crate) {
465465
let index = out.join(requested_crate).join("index.html");
466466
open(builder, &index);

0 commit comments

Comments
 (0)