-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Make CodeStats' type_sizes public #139876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @nnethercote rustbot has assigned @nnethercote. Use |
a93bb8d
to
3f2a880
Compare
Could you explain a bit more what you need this for? |
I'm making a Rust-specialized diff tool that not only gives us the raw diff, but also gives annotations on the core changes. One idea for an annotation I had was about changes in type sizes. The tool could use |
Would it suffice to make |
Absolutely, I didn't make it public to avoid |
3f2a880
to
6999305
Compare
@bors r+ rollup |
…rcote 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.
Need some comment, otherwise this |
Rollup of 10 pull requests Successful merges: - rust-lang#139647 (Add unstable parsing of `--extern foo::bar=libbar.rlib` command line options) - rust-lang#139823 (Fix some bootstrap papercuts) - rust-lang#139853 (Disable combining LLD with external llvm-config) - rust-lang#139867 (Fix some tidy paper cuts) - rust-lang#139871 (Fix wrong "move keyword" suggestion for async gen block) - rust-lang#139876 (Make CodeStats' type_sizes public) - rust-lang#139880 (Don't compute name of associated item if it's an RPITIT) - rust-lang#139884 (Update books) - rust-lang#139886 (`borrowck_graphviz_*` attribute tweaks) - rust-lang#139893 (Add test for issue 125668) r? `@ghost` `@rustbot` modify labels: rollup
Is it too late for a comment, now that it's in rollup? |
Yeah, probably. You can just add the comment in a follow-up PR. |
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#139647 (Add unstable parsing of `--extern foo::bar=libbar.rlib` command line options) - rust-lang#139823 (Fix some bootstrap papercuts) - rust-lang#139867 (Fix some tidy paper cuts) - rust-lang#139871 (Fix wrong "move keyword" suggestion for async gen block) - rust-lang#139876 (Make CodeStats' type_sizes public) - rust-lang#139880 (Don't compute name of associated item if it's an RPITIT) - rust-lang#139884 (Update books) - rust-lang#139886 (`borrowck_graphviz_*` attribute tweaks) - rust-lang#139893 (Add test for issue 125668) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#139647 (Add unstable parsing of `--extern foo::bar=libbar.rlib` command line options) - rust-lang#139823 (Fix some bootstrap papercuts) - rust-lang#139867 (Fix some tidy paper cuts) - rust-lang#139871 (Fix wrong "move keyword" suggestion for async gen block) - rust-lang#139876 (Make CodeStats' type_sizes public) - rust-lang#139880 (Don't compute name of associated item if it's an RPITIT) - rust-lang#139884 (Update books) - rust-lang#139886 (`borrowck_graphviz_*` attribute tweaks) - rust-lang#139893 (Add test for issue 125668) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#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.
…youxu 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`
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`
Document why CodeStats::type_sizes is public As indicated in [this comment](rust-lang/rust#139876 (comment)) from #139876 > Need some comment, otherwise this pub can be eventually removed as unused. r? `@nnethercote`
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.