diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-04-16 13:45:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-16 13:45:30 +0200 |
| commit | b3284adb549ef24c4ab53e8824ec264f94665f87 (patch) | |
| tree | 83e1954282764a9b2667a1b23fbfb46d561621fb /compiler/rustc_session/src | |
| parent | a1de2a2d0523f530cc84f400f075a811fc7d2f53 (diff) | |
| parent | 6999305926b4199d6a33ae4f82002e72115223a8 (diff) | |
| download | rust-b3284adb549ef24c4ab53e8824ec264f94665f87.tar.gz rust-b3284adb549ef24c4ab53e8824ec264f94665f87.zip | |
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.
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/code_stats.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/code_stats.rs b/compiler/rustc_session/src/code_stats.rs index b4597ae2515..6b18d450e9e 100644 --- a/compiler/rustc_session/src/code_stats.rs +++ b/compiler/rustc_session/src/code_stats.rs @@ -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 { |
