diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-07-29 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-07-29 12:46:04 +0200 |
| commit | 6b4c739f92b9b50034ab1d03e0f9eec29e6cfbe1 (patch) | |
| tree | c5a8009060b500e3f090743768be2bc0d11ed090 | |
| parent | 10c375700ce170fc57cb617754dc6d0631d3d573 (diff) | |
| download | rust-6b4c739f92b9b50034ab1d03e0f9eec29e6cfbe1.tar.gz rust-6b4c739f92b9b50034ab1d03e0f9eec29e6cfbe1.zip | |
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.rs | 2 |
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); |
