-
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
small TypeVisitor
refactor
#79773
small TypeVisitor
refactor
#79773
Conversation
(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.
👍
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 personally find this looks pretty good!
debug!("check_opaque_for_inheriting_lifetimes: (visit_ty) t={:?}", t); | ||
if t != self.opaque_identity_ty { | ||
t.super_visit_with(&mut FindParentLifetimeVisitor(self.generics)) | ||
.map_break(|FoundParentLifetime| t) |
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 this in particular is pretty awesome ❤️
Modulo the fact that the visitor names start to look like Java classes now 😆
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.
r=me with a tiny nit
@bors r=oli-obk |
📌 Commit e3e4870 has been approved by |
Wow, I had never seen the bors queue that empty 👀 |
☀️ Test successful - checks-actions |
cc @LeSeulArtichaut @scottmcm
adds
ControlFlow::map_break