-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
underflow while calculating type sizes #122547
Comments
|
without debug assertions:
|
A "quick" fix would probably need to do saturating sub... |
triage: no ice on stable or nightly rust (playground) |
also also required "-Zprint-type-sizes" back then which you can't even enable on the playground? in general, its bad idea to use playground or godbolt in order to try to reproduce ices since you have very limited control of how these compilers are actually called. |
i think it's also a bad idea to put essential information for reproduction in the labels. that label's description is also very unclear as to what needs to be compiled with debug assertions. |
fair, I've updated the label description, hopefully its a bit more clear now, if you have a better idea, feel free to alter it any further! imo if it was the mvce that would require debug assertions to crash rustc, there would be a -Cdebug-assertions or something like that in the reproduction steps, but I'm also the one that wrote the ticket and created the |
i've edited the issue description to be more clear. i'm a firm believer that labels should only be used for metadata, the issue should be entirely self-explanatory without reading labels, and expecially without reading label descriptions |
only happens when rustc is compiled with debug assertions enabled
auto-reduced (treereduce-rust):
original code
original:
Version information
Command:
/home/matthias/.rustup/toolchains/local-debug-assertions/bin/rustc -Zprint-type-sizes
Program output
The text was updated successfully, but these errors were encountered: