-
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
Cleanup rustc/middle #54756
Cleanup rustc/middle #54756
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #54767) made this pull request unmergeable. Please resolve the merge conflicts. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Rebased. |
It seems @michaelwoerister might be currently unavailable; r? @zackmdavis |
(I'll take a look Friday evening.) |
}); | ||
|
||
let explicit = lifetime_params.by_ref().find(|(kind, _)| *kind == LifetimeParamKind::Explicit); | ||
let in_band = lifetime_params.find(|(kind, _)| *kind == LifetimeParamKind::InBand); |
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.
This looks a bit problematic. From the code it's not entirely clear if the second find
will see any elements, since they might have been consumed by the first find
. I'd just leave this as is.
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.
Ah, you're right; I'll fix it shortly.
@michaelwoerister thanks, issue addressed. |
Thanks! @bors r+ |
📌 Commit 97d37ed8a89c40aaca429c3b73b22cae70164722 has been approved by |
☔ The latest upstream changes (presumably #54741) made this pull request unmergeable. Please resolve the merge conflicts. |
Rebased. |
@bors r+ |
📌 Commit 786b86e has been approved by |
Cleanup rustc/middle - improve allocations - use `Cow<'static, str>` where applicable - improve some patterns - whitespace & formatting fixes
☀️ Test successful - status-appveyor, status-travis |
Cow<'static, str>
where applicable