rust/compiler/rustc_save_analysis
Nicholas Nethercote f07d4efc45 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.
2022-09-29 08:44:52 +10:00
..
src Shrink hir::def::Res. 2022-09-29 08:44:52 +10:00
Cargo.toml save_analysis: Migrate diagnostics 2022-08-24 06:50:16 +09:00