diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-09-16 11:45:33 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-09-29 08:44:52 +1000 |
| commit | 8b59fe4981d5d21874413668ff1d8d0b9d8e4ef6 (patch) | |
| tree | 9b11c754e82d75d1af32f5e059850b2bf9c6f5f7 /clippy_lints/src/mutable_debug_assertion.rs | |
| parent | e5ce6d18df883f593e72f7958bebdc3ebcdbe85e (diff) | |
| download | rust-8b59fe4981d5d21874413668ff1d8d0b9d8e4ef6.tar.gz rust-8b59fe4981d5d21874413668ff1d8d0b9d8e4ef6.zip | |
Shrink `hir::def::Res`.
`Res::SelfTy` currently has two `Option`s. When the second one is `Some` the first one is never consulted. So we can split it into two variants, `Res::SelfTyParam` and `Res::SelfTyAlias`, reducing the size of `Res` from 24 bytes to 12. This then shrinks `hir::Path` and `hir::PathSegment`, which are the HIR types that take up the most space.
Diffstat (limited to 'clippy_lints/src/mutable_debug_assertion.rs')
0 files changed, 0 insertions, 0 deletions
