rust/library/alloc
Joshua Nelson 406584621a 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).
2020-09-27 11:28:13 -04:00
..
benches Rust vec bench import specific rand::RngCore 2020-09-25 22:19:28 +08:00
src Use relative links instead of intra-doc links 2020-09-27 11:28:13 -04:00
tests Rollup merge of #76993 - blitzerr:alloc-ref, r=Amanieu 2020-09-23 14:54:06 +02:00
Cargo.toml mv std libs to library/ 2020-07-27 19:51:13 -05:00