-
Notifications
You must be signed in to change notification settings - Fork 13k
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
E0320 error huge type name output #79972
Comments
I would like to implement this! @rustbot claim I'm new to contributing to rust-lang/rust, so I'd be glad to get some advice. Background
I think there are two approaches to omit the type name in the E0320 error output.
|
Hi @minaminao: I'm sad to see that you didn't get any replies here even though you had very well-researched comments and questions. Would you still like to work on this issue? If so I could offer a few pointers. Otherwise I can take over the assignment. |
@fee1-dead Thanks for your interest in this issue! |
Hi @minaminao: all good. I don't think there is any urgency in fixing this issue, so take your time :) As for the approach I think you should try reusing |
You indeed want to modify |
I tried this code:
Compilation resulted in the E0320 error of 3.7MB:
Since the error output is very large and taints the terminal, It might be better to use the same error output format as in the recursion limit error. Its format as follows.
In #72412, long type name is omitted:
In #76843, the full type name of the omitted type is saved to a file:
= note: the full type name has been written to '$TEST_BUILD_DIR/issues/issue-67552/issue-67552.long-type.txt'
Meta
rustc --version --verbose
:The same error occurs in Ubuntu nightly version.
The text was updated successfully, but these errors were encountered: