Rollup merge of #139876 - blyxyas:write_type_sizes, r=nnethercote

Make CodeStats' type_sizes public

Add another way to get type sizes in CodeStats. I find it weird that the only way to get this information in block for all types is via printing directly to stdout. So this PR adds that flexibility.
This commit is contained in:
Matthias Krüger 2025-04-16 13:45:30 +02:00 committed by GitHub
commit b3284adb54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,7 +72,7 @@ pub struct TypeSizeInfo {
#[derive(Default)]
pub struct CodeStats {
type_sizes: Lock<FxHashSet<TypeSizeInfo>>,
pub type_sizes: Lock<FxHashSet<TypeSizeInfo>>,
}
impl CodeStats {