Skip to content
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

Internal utility for visiting all returns #13552

Open
GnomedDev opened this issue Oct 15, 2024 · 1 comment · May be fixed by #13557
Open

Internal utility for visiting all returns #13552

GnomedDev opened this issue Oct 15, 2024 · 1 comment · May be fixed by #13557
Assignees

Comments

@GnomedDev
Copy link
Contributor

GnomedDev commented Oct 15, 2024

We should have a ReturnVisitor built on the intravisit::Visitor infra to visit all explicit ExprKind::Return and implicit (last expression in a block) returns.

This would significantly help with some lint ideas, and like #305 (came up in #13395) and #12290 to name a couple.

@GnomedDev
Copy link
Contributor Author

@rustbot claim

@GnomedDev GnomedDev linked a pull request Oct 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant