diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-09-26 23:44:12 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-09-27 11:28:13 -0400 |
| commit | 406584621a4e2d3752b2444c5bed2218447f0bfe (patch) | |
| tree | 3151a5ae939a0baf711bd2c8ec010aebd5523bd1 /compiler/rustc_codegen_llvm/src | |
| parent | 8437d7b1d30b62b0ada5afd21ba4f9e32635bf31 (diff) | |
| download | rust-406584621a4e2d3752b2444c5bed2218447f0bfe.tar.gz rust-406584621a4e2d3752b2444c5bed2218447f0bfe.zip | |
Use relative links instead of intra-doc links
Previously, `BTreeMap` tried to link to `crate::collections`, intending for the link to go to `std/collections/index.html`. But `BTreeMap` is defined in `alloc`, so after the fix in the previous commit, the links instead went to `alloc/collections/index.html`, which has almost no information. This changes it to link to `index.html`, which only works when viewing from `std::collections::BTreeMap`, the most common place to visit the docs. Fixing it to work from anywhere would require the docs for `std::collections` to be duplicated in `alloc::collections`, which in turn would require HashMap to be `alloc` for intra-doc links to work (https://github.com/rust-lang/rust/issues/74481).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
