Rollup merge of #140121 - blyxyas:code_stats_pub_docs, r=jieyouxu

Document why CodeStats::type_sizes is public

As indicated in [this comment](https://github.com/rust-lang/rust/pull/139876#issuecomment-2808932673) from #139876
> Need some comment, otherwise this pub can be eventually removed as unused.

r? `@nnethercote`
This commit is contained in:
Chris Denton 2025-04-21 15:56:00 +00:00 committed by GitHub
commit 77325f5200
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>>,
}