diff options
| author | blyxyas <blyxyas@gmail.com> | 2025-04-21 17:36:36 +0200 |
|---|---|---|
| committer | blyxyas <blyxyas@gmail.com> | 2025-04-21 17:36:36 +0200 |
| commit | 619ed1540a7704afd08ca91b3a7ddece94ba9720 (patch) | |
| tree | 081def250e5a7e9e52f3d88f93a86bf90e337dfc | |
| parent | c8f94230282a8e8c1148f3e657f0199aad909228 (diff) | |
| download | rust-619ed1540a7704afd08ca91b3a7ddece94ba9720.tar.gz rust-619ed1540a7704afd08ca91b3a7ddece94ba9720.zip | |
Document why CodeStats::type_sizes is public
| -rw-r--r-- | compiler/rustc_session/src/code_stats.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/code_stats.rs b/compiler/rustc_session/src/code_stats.rs index 6b18d450e9e..80603b4a156 100644 --- a/compiler/rustc_session/src/code_stats.rs +++ b/compiler/rustc_session/src/code_stats.rs @@ -72,6 +72,8 @@ pub struct TypeSizeInfo { #[derive(Default)] pub struct CodeStats { + /// The hash set that actually holds all the type size information. + /// The field is public for use in external tools. See #139876. pub type_sizes: Lock<FxHashSet<TypeSizeInfo>>, } |
