Skip to content

Commit

Permalink
Auto merge of #74900 - tmiasko:doc-open, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Jul 29, 2020
2 parents 0dd362e + 6b4c739 commit 06e7b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 06e7b93

Please sign in to comment.