]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #77253 - jyn514:crate-link, r=Manishearth
authorbors <bors@rust-lang.org>
Tue, 29 Sep 2020 12:11:17 +0000 (12:11 +0000)
committerbors <bors@rust-lang.org>
Tue, 29 Sep 2020 12:11:17 +0000 (12:11 +0000)
Resolve `crate` in intra-doc links properly across crates

Closes https://github.com/rust-lang/rust/issues/77193; see https://github.com/rust-lang/rust/issues/77193#issuecomment-699065946 for an explanation of what's going on here.
~~This also fixes the BTreeMap docs that have been broken for a while; see the description on the second commit for why and how.~~ Nope, see the second commit for why the link had to be changed.

r? `@Manishearth`
cc `@dylni`

`@dylni` note that this doesn't solve your original problem - now _both_ `with_code` and `crate::with_code` will be broken links. However this will fix a lot of other broken links (in particular I think https://docs.rs/sqlx/0.4.0-beta.1/sqlx/query/struct.Query.html is because of this bug). I'll open another issue for resolving additional docs in the new scope.


No differences found