about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2025-01-29 15:14:10 -0700
committerMichael Howell <michael@notriddle.com>2025-01-29 15:14:49 -0700
commite90f129adfebc7edce61b9f6ec573fc09f712ab3 (patch)
tree25fea7bb73b22fe34b302726d6799a1ba050a6ea /src/librustdoc/html
parent0cc4f4f7b81f88df6bdd54b41d4a0b1703fd014d (diff)
downloadrust-e90f129adfebc7edce61b9f6ec573fc09f712ab3.tar.gz
rust-e90f129adfebc7edce61b9f6ec573fc09f712ab3.zip
rustdoc: use ThinVec for generic arg parts
This reduces the size of both these args, and of path segments,
so should measurably help with memory use.
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/render/search_index.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/search_index.rs b/src/librustdoc/html/render/search_index.rs
index e4a9a2b512e..8ac8b3a1f84 100644
--- a/src/librustdoc/html/render/search_index.rs
+++ b/src/librustdoc/html/render/search_index.rs
@@ -821,7 +821,7 @@ pub(crate) fn get_function_type_for_search(
                     .map(|name| clean::PathSegment {
                         name: *name,
                         args: clean::GenericArgs::AngleBracketed {
-                            args: Vec::new().into_boxed_slice(),
+                            args: ThinVec::new(),
                             constraints: ThinVec::new(),
                         },
                     })