-
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
Fix ice when error reporting recursion errors #94391
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @matthewjasper (or someone else) soon. Please see the contribution instructions for more information. |
Note there is another PR #91238 fixes the ICE in a different way. |
Overflow => { | ||
// Already reported. | ||
Overflow(OverflowError::Error(ErrorReported)) => { | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I'm fairly sure that this is the line that fixes the ICE, if you change this back to a bug!
invocation does the ICE come back? We're still technically reporting the same error but instead of handling it we ignore it which is probably fine because we've technically already errored somewhere else before this if we are getting to this point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this back to a bug!
will cause ICE.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we have a delay_span_bug
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
closing this based on comment by author #94391 (comment) |
@Dylan-DPC should not we close #91238 instead of this? |
ah yes :D |
☔ The latest upstream changes (presumably #94901) made this pull request unmergeable. Please resolve the merge conflicts. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Apologies for the delay in reviewing. Can you check if adding the |
Tepidly nominating for backport, as this fixes a stable regression that has existed for multiple stable releases. |
@bors r+ |
📌 Commit 85e67b9 has been approved by |
Fix ice when error reporting recursion errors Fixes: rust-lang#90319, rust-lang#92148, rust-lang#93955
Fix ice when error reporting recursion errors Fixes: rust-lang#90319, rust-lang#92148, rust-lang#93955
Rollup of 5 pull requests Successful merges: - rust-lang#94391 (Fix ice when error reporting recursion errors) - rust-lang#94655 (Clarify which kinds of MIR are allowed during which phases.) - rust-lang#95179 (Try to evaluate in try unify and postpone resolution of constants that contain inference variables) - rust-lang#95270 (debuginfo: Fix debuginfo for Box<T> where T is unsized.) - rust-lang#95276 (add diagnostic items for clippy's `trim_split_whitespace`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes: #90319, #92148, #93955