Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix broken [pattern] link #73804

Closed
wants to merge 6 commits into from

Conversation

sethp
Copy link
Contributor

@sethp sethp commented Jun 27, 2020

When I was reading the String documentation, I tried to follow the "pattern" link below trim_end_matches and found myself on a 404 page. It looks like the url I was visiting and the url for the pattern docs were as follows:

https://doc.rust-lang.org/std/string/str/pattern/index.html (404)
https://doc.rust-lang.org/std/str/pattern/index.html

I believe this change points the link to the right location, but I'm not entirely sure how to check.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @hanna-kruppe (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 27, 2020
@hanna-kruppe
Copy link
Contributor

I'm not quite sure either, but I believe this change would break the links when viewing this documentation from their "main" location, https://doc.rust-lang.org/std/primitive.str.html. And since these two locations are at a different "depth" from the root, I don't see any way to make both locations work with the same relative link. #43466 would help, but I am not sure if that's already used (or ready to be used) in libstd docs.

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-8 of your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
##[section]Starting: Linux x86_64-gnu-llvm-8
##[section]Starting: Initialize job
Agent name: 'Azure Pipelines 7'
Agent machine name: 'fv-az578'
Current agent version: '2.171.1'
##[group]Operating System
16.04.6
LTS
LTS
##[endgroup]
##[group]Virtual Environment
Environment: ubuntu-16.04
Version: 20200621.1
Included Software: https://github.com/actions/virtual-environments/blob/ubuntu16/20200621.1/images/linux/Ubuntu1604-README.md
##[endgroup]
Agent running as: 'vsts'
Prepare build directory.
Set build variables.
Download all required tasks.
Download all required tasks.
Downloading task: Bash (3.171.1)
Checking job knob settings.
   Knob: AgentToolsDirectory = /opt/hostedtoolcache Source: ${AGENT_TOOLSDIRECTORY} 
   Knob: AgentPerflog = /home/vsts/perflog Source: ${VSTS_AGENT_PERFLOG} 
Start tracking orphan processes.
##[section]Finishing: Initialize job
##[section]Starting: Configure Job Name
==============================================================================
---
========================== Starting Command Output ===========================
[command]/bin/bash --noprofile --norc /home/vsts/work/_temp/bc88daec-951f-448d-837d-12da0ab56f35.sh

##[section]Finishing: Disable git automatic line ending conversion
##[section]Starting: Checkout rust-lang/rust@refs/pull/73804/merge to s
Task         : Get sources
Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
Version      : 1.0.0
Author       : Microsoft
---
##[command]git remote add origin https://github.com/rust-lang/rust
##[command]git config gc.auto 0
##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
##[command]git config --get-all http.proxy
##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/*:refs/remotes/origin/* +refs/pull/73804/merge:refs/remotes/pull/73804/merge
---
 ---> 31fea614d2f3
Step 5/8 : ENV RUST_CONFIGURE_ARGS       --build=x86_64-unknown-linux-gnu       --llvm-root=/usr/lib/llvm-8       --enable-llvm-link-shared       --set rust.thin-lto-import-instr-limit=10
 ---> Using cache
 ---> 4195cadf126d
Step 6/8 : ENV SCRIPT python2.7 ../x.py test --exclude src/tools/tidy &&            python2.7 ../x.py test src/test/mir-opt --pass=build                                   --target=armv5te-unknown-linux-gnueabi &&            python2.7 ../x.py test src/tools/tidy
 ---> 4e90f6b48f05
Step 7/8 : ENV NO_DEBUG_ASSERTIONS=1
 ---> Using cache
 ---> dfa0a356d899
---
Set({"src/librustc_parse_format"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_passes"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_plugin_impl"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_privacy"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_query_system"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_save_analysis"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_serialize"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_session"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_span"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
---
Set({"src/librustc_parse_format"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_passes"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_plugin_impl"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_privacy"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_query_system"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_save_analysis"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_serialize"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_session"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_span"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
---
   Compiling rustc_parse_format v0.0.0 (/checkout/src/librustc_parse_format)
   Compiling chalk-engine v0.14.0
   Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
   Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
   Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
   Compiling chalk-solve v0.14.0
   Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
   Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
   Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
   Compiling rustc_parse_format v0.0.0 (/checkout/src/librustc_parse_format)
   Compiling tracing v0.1.15
   Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
   Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
   Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
   Compiling chalk-engine v0.14.0
   Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
   Compiling chalk-solve v0.14.0
   Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
---
...........................i........................................................................ 1900/10409
.................................................................................................... 2000/10409
......................................................i..i.......................................... 2100/10409
.................................................................................................... 2200/10409
............................................iiiii................................................... 2300/10409
.................................................................................................... 2500/10409
.................................................................................................... 2600/10409
.................................................................................................... 2700/10409
.................................................................................................... 2800/10409
---
...i................................................................................................ 5300/10409
.................................................................................................... 5400/10409
....................................i............................................................... 5500/10409
..............................i..................................................................... 5600/10409
..................................................ii.ii........i...i................................ 5700/10409
...................i................................................................................ 5900/10409
................i................................................................................... 6000/10409
..........................................................................ii........................ 6100/10409
.............i...................................................................................... 6200/10409
.............i...................................................................................... 6200/10409
.................................................................................................... 6300/10409
.................................................................................................... 6400/10409
.....................................ii...i..ii...........i......................................... 6500/10409
.................................................................................................... 6700/10409
.................................................................................................... 6800/10409
.................................................................................................... 6800/10409
........................................................................i..ii....................... 6900/10409
.................................................................................................... 7100/10409
.................................................................................................... 7200/10409
............................i....................................................................... 7300/10409
.................................................................................................... 7400/10409
---
.................................................................................................... 8300/10409
.................................................................................................... 8400/10409
...............................................................................i.................... 8500/10409
.................................................................................................... 8600/10409
.................................iiiiii..iiiiii.i................................................... 8700/10409
.................................................................................................... 8900/10409
.................................................................................................... 9000/10409
.................................................................................................... 9100/10409
.................................................................................................... 9200/10409
---
Suite("src/test/codegen") not skipped for "bootstrap::test::Codegen" -- not in ["src/tools/tidy"]
Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)

running 202 tests
iiii......i..i...............ii..i..........i...........i............i...........i..i........i...... 100/202
..i....i.............i.i.i...iii..iiii....................................iii.................ii.... 200/202
test result: ok. 170 passed; 0 failed; 32 ignored; 0 measured; 0 filtered out

 finished in 6.784
Suite("src/test/codegen-units") not skipped for "bootstrap::test::CodegenUnits" -- not in ["src/tools/tidy"]
---
Suite("src/test/assembly") not skipped for "bootstrap::test::Assembly" -- not in ["src/tools/tidy"]
Check compiletest suite=assembly mode=assembly (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)

running 22 tests
iiiiiiiiiiiiiiiiiiiiii

 finished in 0.154
Suite("src/test/incremental") not skipped for "bootstrap::test::Incremental" -- not in ["src/tools/tidy"]
Check compiletest suite=incremental mode=incremental (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
---
Suite("src/test/debuginfo") not skipped for "bootstrap::test::Debuginfo" -- not in ["src/tools/tidy"]
Check compiletest suite=debuginfo mode=debuginfo (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)

running 116 tests
iiiii..i.....i..i...i..i.i.i..i..i..ii....i.i....ii..........iiii.........i.....i...i.......ii.i.ii. 100/116
....iiii.....ii.

 finished in 14.976
Suite("src/test/ui-fulldeps") not skipped for "bootstrap::test::UiFullDeps" -- not in ["src/tools/tidy"]
Uplifting stage1 rustc (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
---

   Doc-tests core

running 2586 tests
......iiiii......................................................................................... 100/2586
.................................................................................................ii. 200/2586
.......................................i............................................................ 400/2586
...............................................................................................i..i. 500/2586
...............................................................................................i..i. 500/2586
.................iiii............................................................................... 600/2586
.................................................................................................... 800/2586
.................................................................................................... 900/2586
.................................................................................................... 1000/2586
.................................................................................................... 1100/2586
---

running 1043 tests
i................................................................................................... 100/1043
.................................................................................................... 200/1043
...................iii......i......i...i.........i.................................................. 300/1043
..........................................................i....i.................................... 500/1043
...................ii............................................................................... 600/1043
.................................................................................................... 700/1043
.................................................................................................... 700/1043
...................................................................iiii............................. 800/1043
.................................................................................................... 900/1043
..........................................................................................iiii...... 1000/1043
test result: ok. 1023 passed; 0 failed; 20 ignored; 0 measured; 0 filtered out

 finished in 159.698
Set({"src/libterm"}) not skipped for "bootstrap::test::Crate" -- not in ["src/tools/tidy"]
---
Set({"src/librustc_parse_format"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_passes"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_plugin_impl"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_privacy"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_query_system"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_save_analysis"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_serialize"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_session"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_span"}) not skipped for "bootstrap::test::CrateLibrustc" -- not in ["src/tools/tidy"]
---
Set({"src/librustc_parse_format"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_passes"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_plugin_impl"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_privacy"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_query_system"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_save_analysis"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_serialize"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_session"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
Set({"src/librustc_span"}) not skipped for "bootstrap::doc::Rustc" -- not in ["src/tools/tidy"]
---
Rustbook (x86_64-unknown-linux-gnu) - edition-guide
Building stage0 tool linkchecker (x86_64-unknown-linux-gnu)
   Compiling linkchecker v0.1.0 (/checkout/src/tools/linkchecker)
    Finished release [optimized] target(s) in 1.70s
std/primitive.str.html:500: broken link - str/pattern/index.html
std/primitive.str.html:513: broken link - str/pattern/index.html
std/primitive.str.html:526: broken link - str/pattern/index.html
std/primitive.str.html:539: broken link - str/pattern/index.html
std/primitive.str.html:569: broken link - str/pattern/index.html
std/primitive.str.html:595: broken link - str/pattern/index.html
std/primitive.str.html:674: broken link - str/pattern/index.html
std/primitive.str.html:693: broken link - str/pattern/index.html
std/primitive.str.html:722: broken link - str/pattern/index.html
std/primitive.str.html:745: broken link - str/pattern/index.html
std/primitive.str.html:768: broken link - str/pattern/index.html
std/primitive.str.html:800: broken link - str/pattern/index.html
std/primitive.str.html:825: broken link - str/pattern/index.html
std/primitive.str.html:844: broken link - str/pattern/index.html
std/primitive.str.html:864: broken link - str/pattern/index.html
std/primitive.str.html:888: broken link - str/pattern/index.html
std/primitive.str.html:1019: broken link - str/pattern/index.html
std/primitive.str.html:1038: broken link - str/pattern/index.html
std/primitive.str.html:1061: broken link - str/pattern/index.html
std/primitive.str.html:1075: broken link - str/pattern/index.html
std/primitive.str.html:1086: broken link - str/pattern/index.html
std/primitive.str.html:1109: broken link - str/pattern/index.html
std/primitive.str.html:1128: broken link - str/pattern/index.html
thread 'main' panicked at 'found some broken links', src/tools/linkchecker/main.rs:41:9


command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/linkchecker" "/checkout/obj/build/x86_64-unknown-linux-gnu/doc"
expected success, got: exit code: 101
---
  local time: Sat Jun 27 17:42:19 UTC 2020
  network time: Sat, 27 Jun 2020 17:42:19 GMT
== end clock drift check ==

##[error]Bash exited with code '1'.
##[section]Finishing: Run build
##[section]Starting: Checkout rust-lang/rust@refs/pull/73804/merge to s
Task         : Get sources
Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
Version      : 1.0.0
Author       : Microsoft
Author       : Microsoft
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
==============================================================================
Cleaning any cached credential from repository: rust-lang/rust (GitHub)
##[section]Finishing: Checkout rust-lang/rust@refs/pull/73804/merge to s
Cleaning up task key
Start cleaning up orphan processes.
Terminate orphan process: pid (3862) (python)
##[section]Finishing: Finalize Job

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @rust-lang/infra. (Feature Requests)

@ehuss
Copy link
Contributor

ehuss commented Jun 28, 2020

This is a known issue (#32129).

@Manishearth Can we start using intra-doc-links in libstd? I noticed it is used sparingly in a few places, but I'm not certain if we can use it more frequently.

If so, then in this I case I think the changes we can make are:

  • Remove all the lines like the following:
    • /// [`None`]: option/enum.Option.html#variant.None
    • /// [`char`]: primitive.char.html
  • Change some lines to use a path, like [pattern] for some reason can't resolve relative (presumably because this is a lang item). For example:
    • /// [pattern]: crate::str::pattern

After making changes, make sure the links work in all the different pages they show up in. For example, for str it would be /std/string/struct.String.html and /std/primitive.str.html. Things like btree are tricky because it appears in different crates. I've seen a flurry of recent activity to fix cross-crate re-exports, but I'm not sure how close that is to working (#73101?).

It would be great if we can get to the point where we can remove all the exclusions.

@Manishearth
Copy link
Member

@ehuss yeah you should totally be fine to use intra doc links

Lang item should not matter, idk why pattern isn't working.

@ehuss
Copy link
Contributor

ehuss commented Jun 28, 2020

Oh cool. @sethp Would you be OK trying to switch the problematic links over to intra-doc-links (at least for the str page)?

These docs are available from two different paths:

```
/std/string/struct.String.html
/std/primitive.str.html
```

Because they're at different levels, we can't construct a single relative path that works for both. However, we can ask the tooling to generate the correct relative path for each source with an `intra-doc-link`.
@sethp
Copy link
Contributor Author

sethp commented Jul 4, 2020

Hmm, I've gotten the pattern links fixed up per your suggestion in fb26b0c – when I ran python3 x.py doc it produced documentation that had appropriate links for both places. Hooray!

I'm game to try finding and fixing the other issues mentioned in #32129 so we can remove the exclusion for some of the String pages, at least, but first I've come to ask for help. It takes about 40 minutes for python3 x.py doc to run on my machine, which makes the turnaround on testing changes pretty slow going. I'm trying python3 x.py doc --stage 1 src/libcore/ from the rustdoc cheat sheet as I write this, but I'd be glad for any pointers you have for iterating on documentation, too!

@sethp
Copy link
Contributor Author

sethp commented Jul 4, 2020

Well, phew – once my doc --stage 1 src/libcore/ finished the first time, it's now taking about 10 seconds to rebuild the docs.

@ehuss
Copy link
Contributor

ehuss commented Jul 4, 2020

./x.py doc --stage=0 src/libstd should be good enough for now. AFAIK, most of the recent intra-doc fixes are in the beta/stage0 (1.45) compiler. Only if there is something needed in the nightly release do you need --stage 1.

See fb26b0c. This commit also removes the exclusion for the String docs page, but there's still a few broken links.
@ehuss
Copy link
Contributor

ehuss commented Jul 5, 2020

Just FYI, it looks like the tidy check failed due to a rustfmt error. I'm not sure why the bot didn't leave a comment about that. Running x.py fmt should fix it.

@sethp
Copy link
Contributor Author

sethp commented Jul 5, 2020

Oh, so it is – I've fixed the formatting, but I still expect broken links: at least locally, method links into primitives are going to a strange place. Specifically, I was seeing links for primitives as an absolute path: /path/to/rust/src/libcore/primitive.char.html#escape_debug (which didn't work so well).

I think I just now have a fix that I'll be pushing up in a moment.

At least locally, this required the fix in librustdoc: else, I was seeing broken links pointing into the source of the module being documented rather than linking to the `std/primitive.char.html#method.FOO` page as was likely intended.
@ehuss
Copy link
Contributor

ehuss commented Jul 5, 2020

Oh, interesting! I think it would be best to split any intra-doc fixes into a separate PR. cc @jyn514, I'm not sure if there is any in-progress work that would fix the issue encountered above? That is, the link char::escape_debug in a primitive str method (libcore/str/mod.rs) ends up with a weird absolute path (like http://localhost:8000/Users/eric/Proj/rust/rust/src/libcore/std/primitive.char.html#method.escape_debug). I'm not sure if there's an existing issue for that. I'm also not familiar enough with that code to review the included patch.

Also, I noticed the char links in this PR are now going to the char module instead of the char type. Unfortunately it doesn't look like there is a way to link to the char type directly (#58699 or #74063). So maybe for now, the changes to char should be backed out.

Unfortunately, it doesn't look like intra-doc links are in a state where the string pages can be fixed. 😦

@jyn514
Copy link
Member

jyn514 commented Jul 5, 2020

I'm not sure if there is any in-progress work that would fix the issue encountered above?

Not that I'm aware of, I just noticed the same issue today. If @sethp has a fix that's awesome, I'd be happy to review!

#74063 is definitely a bug, I'll see if I can work on it tonight (should be a simple fix). #58699 is IMO expected behavior but we can change it if it's confusing.

@sethp
Copy link
Contributor Author

sethp commented Jul 6, 2020

Ah, ok, let me pull the primitive method link fix into a separate PR.

I'll also pull out any non-pattern link fixes and the linkchecker change, as it looks like @lzutao is already working on that same thing over in #74061.

sethp added a commit to sethp/rust that referenced this pull request Jul 6, 2020
Else, links to `char::foo` would point into `/path/to/src/libcore/std/primitive.char.html#method.foo`.

Split out from rust-lang#73804.
Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 7, 2020
…link, r=Dylan-DPC

Use relative path for local links to primitives

Else, links to `char::foo` would point into `/path/to/src/libcore/std/primitive.char.html#method.foo`.

Split out from rust-lang#73804.
Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 8, 2020
…link, r=jyn514

Use relative path for local links to primitives

Else, links to `char::foo` would point into `/path/to/src/libcore/std/primitive.char.html#method.foo`.

Split out from rust-lang#73804.
Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 9, 2020
…link, r=jyn514

Use relative path for local links to primitives

Else, links to `char::foo` would point into `/path/to/src/libcore/std/primitive.char.html#method.foo`.

Split out from rust-lang#73804.
Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 9, 2020
…link, r=jyn514

Use relative path for local links to primitives

Else, links to `char::foo` would point into `/path/to/src/libcore/std/primitive.char.html#method.foo`.

Split out from rust-lang#73804.
Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 9, 2020
…link, r=jyn514

Use relative path for local links to primitives

Else, links to `char::foo` would point into `/path/to/src/libcore/std/primitive.char.html#method.foo`.

Split out from rust-lang#73804.
@ehuss
Copy link
Contributor

ehuss commented Jul 15, 2020

@sethp now that #74077 is merged, do you want to take advantage of that in this PR? Or should this PR be ready to go as-is?

@sethp
Copy link
Contributor Author

sethp commented Jul 15, 2020

Actually, it looks like #74061 already includes everything I've got here, and is more complete. Let's close this one in favor of that.

@sethp sethp closed this Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants