about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2025-07-24 15:08:26 +0200
committerGitHub <noreply@github.com>2025-07-24 15:08:26 +0200
commit7413ecee4bf47f237fbe9b62c69ba448ab330177 (patch)
treeac1b1996f367db7ed2d056a82c355664075d6107 /compiler/rustc_resolve/src
parent352e02bce172fd59313f66339e60371bb7a13ed9 (diff)
parent9e75032a9dc06d8286aebcb4ed00ad5d81bbf0e9 (diff)
downloadrust-7413ecee4bf47f237fbe9b62c69ba448ab330177.tar.gz
rust-7413ecee4bf47f237fbe9b62c69ba448ab330177.zip
Rollup merge of #144320 - lolbinarycat:rustdoc-search_index-BTreeMap-str, r=GuillaumeGomez
rustdoc: avoid allocating a temp String for aliases in search index

Here's the optimization I talked about in https://github.com/rust-lang/rust/pull/143988#discussion_r2208524163

I got around the Serialize issue using the newtype pattern.  The wrapper type could be factored out into a helper that would work with anything that impls `AsRef<&str>`, but I'm not sure if that would be helpful anywhere else.

r? ``````@GuillaumeGomez``````
Diffstat (limited to 'compiler/rustc_resolve/src')
0 files changed, 0 insertions, 0 deletions