-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Return early to fix ICE #94711
Return early to fix ICE #94711
Conversation
r? @nagisa (rust-highfive has picked a reviewer for you, use r? to override) |
Perhaps we can fix this issue in a different way. Right above your changes is a call to |
But there is no sized constraint left so we don't pass |
Hm.. really? How do we get into that loop if we have no constraints? I would assume the only constraint we had in that loop that get drained in that drain_filter call. |
But... drain is inside the loop, we drain the |
What do you think about not calling multipart_suggestion_verbose if the suggestion list is empty? |
r? @oli-obk |
It would not matter much. Just would improve readability 😸 if suggestions.len() == 1 {//span_suggestion_verbose}
else if sugesstions.len() > 1 {// multipart} like this? |
@bors r+ rollup Perfect! Thanks |
📌 Commit 1853ffc has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (22a20e3): comparison url. Summary: This benchmark run did not return any relevant results. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
This fixes #94627, ICE happens because compiler tries to suggest constraining type parameter but the only constraint is implicit
std::Sized
one, so it gets removed and there is nothing to suggest resulting in ICE.