about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-08-22 21:35:01 -0700
committerNoah Lev <camelidcamel@gmail.com>2021-08-31 20:32:17 -0700
commit2d1240e6f7709d06caddc396f689ba0bc77f80a3 (patch)
tree12c26b83912898d125c49c656cdc6a91a770fde8 /compiler/rustc_mir_transform/src/coverage/debug.rs
parent5d6804469d80aaf26f98090ae016af45e267f58f (diff)
downloadrust-2d1240e6f7709d06caddc396f689ba0bc77f80a3.tar.gz
rust-2d1240e6f7709d06caddc396f689ba0bc77f80a3.zip
Box `GenericArgs::Parenthesized.output`
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.

I also added `static_assert_size!`s to `GenericArgs` and `PathSegment`
to ensure they don't increase in size unexpectedly.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions