-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implement a ReturnVisitor #13557
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
base: master
Are you sure you want to change the base?
Implement a ReturnVisitor #13557
Conversation
ae1b00b
to
247f616
Compare
This is now generic enough for the never returns lint, so ready for review! |
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.
LGTM, thanks! can we squash some commits?
247f616
to
90e6c47
Compare
Done @dswij! |
☔ The latest upstream changes (presumably #13567) made this pull request unmergeable. Please resolve the merge conflicts. |
90e6c47
to
5e74751
Compare
5e74751
to
4577702
Compare
Ping @dswij from triage. Looks like you were ready to merge this. |
r? @Jarcho Taking over since @dswij seems to be busy. This visitor seems to conflate two things which shouldn't be mixed together. A combination of places the code returns from and the values it returns. For For #13565 this is overly complicated. There you only need to check, for all explicit returns and the implicit return, if the value is of type |
☔ The latest upstream changes (possibly d28d234) made this pull request unmergeable. Please resolve the merge conflicts. |
Closes #13552
changelog: none