]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #90443 - camelid:rustdoc-subst, r=GuillaumeGomez
authorbors <bors@rust-lang.org>
Mon, 8 Nov 2021 21:37:59 +0000 (21:37 +0000)
committerbors <bors@rust-lang.org>
Mon, 8 Nov 2021 21:37:59 +0000 (21:37 +0000)
commit515472757d2991e280965d7c1d235cfbb6ceb006
tree5f557dc1eb81b0cd54d4547582f3cfe46f768026
parent495322d776fd6f679cd8cd4ca02b8fa834da654b
parent5a77f3006f0e15c35e905b6f4f08a33f7005c3d1
Auto merge of #90443 - camelid:rustdoc-subst, r=GuillaumeGomez

Merge `DocContext.{ty,lt,ct}_substs` into one map

It should be impossible to have more than one entry with a particular
key across the three maps, so they should be one map. In addition to
making it impossible for multiple entries to exist, this should improve
memory usage since now only one map is allocated on the stack and heap.

r? `@GuillaumeGomez`
src/librustdoc/clean/mod.rs
src/librustdoc/clean/types.rs
src/librustdoc/lib.rs