-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Hide comments about constants in MIR dumps if they bring no additional information #74508
Comments
I'd like to try this. |
ooh, sorry, evanrichter (idk their github handle) is working on it already since yesterday. |
@mglagla we can work together if you want, as I'm new to rustc dev. would you like to claim by saying |
@evanrichter No, it's alright, I merely wanted to test if I could find the relevant part of code to edit and I did. I only would make a pull request if nobody worked on this already. |
@mglagla sounds like you are ahead of me and I am busy this week. If the issue is still available next week I'll claim it |
@evanrichter do think you'll have time to work on this? |
@xldenis not until Wednesday at least |
Hey guys, sorry to snipe this - there hadn't been any activity in a few weeks so I had a go at fixing this. @oli-obk I've implemented your suggestion in the linked PR. One note though is that your post above did not specify if we should suppress only |
Suppress verbose MIR comments for trivial types Addresses rust-lang#74508 This is my first contribution to the Rust project! Please let me know if anything needs revising, I'm happy to make changes.
My commit landed just over a week ago, we should be able to close this issue. |
cc @lcnr @eddyb
We sometimes have super verbose things in MIR like
These constants give no useful additional information, as everything is already contained in the mir terminator. I think we could start out with just not printing these statements if the type is an integer, bool or char, which should cover most use cases. A more complex analysis could later look at constant in more detail and decide whether the verbose printing could be helpful.
The text was updated successfully, but these errors were encountered: