Skip to content

Commit 77325f5

Browse files
authored
Rollup merge of rust-lang#140121 - blyxyas:code_stats_pub_docs, r=jieyouxu
Document why CodeStats::type_sizes is public As indicated in [this comment](rust-lang#139876 (comment)) from rust-lang#139876 > Need some comment, otherwise this pub can be eventually removed as unused. r? `@nnethercote`
2 parents 280aa4a + 619ed15 commit 77325f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_session/src/code_stats.rs

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ pub struct TypeSizeInfo {
7272

7373
#[derive(Default)]
7474
pub struct CodeStats {
75+
/// The hash set that actually holds all the type size information.
76+
/// The field is public for use in external tools. See #139876.
7577
pub type_sizes: Lock<FxHashSet<TypeSizeInfo>>,
7678
}
7779

0 commit comments

Comments
 (0)