]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #88522 - camelid:box-paren-output, r=jyn514
authorbors <bors@rust-lang.org>
Thu, 2 Sep 2021 00:12:21 +0000 (00:12 +0000)
committerbors <bors@rust-lang.org>
Thu, 2 Sep 2021 00:12:21 +0000 (00:12 +0000)
commite3c71f1e33b026dea7c9ca7c1c4554e63f56a0da
treebef0127f5d8e5b5a78ed15be224ba9437c1e39e7
parent767edcf61630ee05a19e2be9085a153750b4d102
parent280e16787e6a9bd769754f29c37c045bc18016f4
Auto merge of #88522 - camelid:box-paren-output, r=jyn514

rustdoc: Box `GenericArgs::Parenthesized.output`

Split out from #88379.

This reduces the size of `GenericArgs` from 104 bytes to 56 bytes,
essentially reducing it by half.

`GenericArgs` is one of the fields of `PathSegment`, so this should
reduce the amount of memory allocated for `PathSegment`s in the cases
where the generics are not for a `Fn`, `FnMut`, or `FnOnce` trait.

r? `@jyn514`
src/librustdoc/clean/mod.rs
src/librustdoc/clean/types.rs
src/librustdoc/json/conversions.rs