Auto merge of #142335 - nnethercote:rustdoc-json-allocations, r=aDotInTheVoid

rustdoc_json: reduce allocations

These commits reduce the number of allocations done for rustdoc_json, mostly by avoiding unnecessary clones.

Best reviewed one commit at a time.

r? `@aDotInTheVoid`
This commit is contained in:
bors 2025-06-14 23:21:16 +00:00
commit d0d88f5903

Diff Content Not Available