-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Do not panic in return_type_impl_trait
#86505
Conversation
r? @jackh726 (rust-highfive has picked a reviewer for you, use r? to override) |
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.
I think it's better to enumerate the Items that are relevant (i.e. closures and fn items), rather than checking for items to return early from.
r=me with that, or as is
@jackh726 Applied your suggestion, could you take a look once more in case I overlook some cases? |
@bors r+ rollup |
📌 Commit 9323a28 has been approved by |
Do not panic in `return_type_impl_trait` Fixes rust-lang#86483
☀️ Test successful - checks-actions |
Fixes #86483